Tests: Make CompileFeatures feature list lang-specific.
This commit is contained in:
parent
e2f09aff12
commit
eb638c75cc
|
@ -10,11 +10,11 @@ run_cmake(NotAFeature_OriginDebug_target_compile_features)
|
||||||
|
|
||||||
run_cmake(generate_feature_list)
|
run_cmake(generate_feature_list)
|
||||||
file(READ
|
file(READ
|
||||||
"${RunCMake_BINARY_DIR}/generate_feature_list-build/features.txt"
|
"${RunCMake_BINARY_DIR}/generate_feature_list-build/cxx_features.txt"
|
||||||
FEATURES
|
CXX_FEATURES
|
||||||
)
|
)
|
||||||
|
|
||||||
if (NOT FEATURES)
|
if (NOT CXX_FEATURES)
|
||||||
run_cmake(NoSupportedCxxFeatures)
|
run_cmake(NoSupportedCxxFeatures)
|
||||||
run_cmake(NoSupportedCxxFeaturesGenex)
|
run_cmake(NoSupportedCxxFeaturesGenex)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/features.txt"
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cxx_features.txt"
|
||||||
"${CMAKE_CXX_COMPILE_FEATURES}"
|
"${CMAKE_CXX_COMPILE_FEATURES}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue