2014-05-15 13:32:30 +04:00
|
|
|
|
|
|
|
add_library(empty1 empty.cpp)
|
|
|
|
|
|
|
|
add_library(empty2 INTERFACE)
|
|
|
|
add_library(empty3 INTERFACE)
|
2015-01-16 01:53:23 +03:00
|
|
|
target_compile_features(empty3 INTERFACE cxx_static_assert)
|
2014-05-15 13:32:30 +04:00
|
|
|
|
|
|
|
target_link_libraries(empty1
|
2015-01-18 16:37:34 +03:00
|
|
|
# When starting, $<COMPILE_FEATURES:cxx_auto_type> is '0', so 'freeze' the
|
2014-05-15 13:32:30 +04:00
|
|
|
# CXX_STANDARD at 98 during computation.
|
2015-01-18 16:37:34 +03:00
|
|
|
$<$<COMPILE_FEATURES:cxx_auto_type>:empty2>
|
2015-01-18 16:36:01 +03:00
|
|
|
# This would add cxx_static_assert, but that would require CXX_STANDARD = 11,
|
2014-05-15 13:32:30 +04:00
|
|
|
# which is not allowed after freeze. Report an error.
|
|
|
|
empty3
|
|
|
|
)
|