Tests: Make CompileFeatures feature list lang-specific.

This commit is contained in:
Stephen Kelly 2014-05-10 13:05:46 +02:00
parent e2f09aff12
commit eb638c75cc
2 changed files with 4 additions and 4 deletions

View File

@ -10,11 +10,11 @@ run_cmake(NotAFeature_OriginDebug_target_compile_features)
run_cmake(generate_feature_list)
file(READ
"${RunCMake_BINARY_DIR}/generate_feature_list-build/features.txt"
FEATURES
"${RunCMake_BINARY_DIR}/generate_feature_list-build/cxx_features.txt"
CXX_FEATURES
)
if (NOT FEATURES)
if (NOT CXX_FEATURES)
run_cmake(NoSupportedCxxFeatures)
run_cmake(NoSupportedCxxFeaturesGenex)
endif()

View File

@ -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}"
)