2014-04-02 17:34:16 +04:00
|
|
|
include(RunCMake)
|
|
|
|
|
|
|
|
run_cmake(NotAFeature)
|
2013-10-22 17:05:49 +04:00
|
|
|
run_cmake(NotAFeatureGenex)
|
2013-10-22 03:40:47 +04:00
|
|
|
run_cmake(NotAFeatureTransitive)
|
|
|
|
run_cmake(NotAFeature_OriginDebug)
|
|
|
|
run_cmake(NotAFeature_OriginDebugGenex)
|
|
|
|
run_cmake(NotAFeature_OriginDebugTransitive)
|
2013-10-13 16:25:08 +04:00
|
|
|
run_cmake(NotAFeature_OriginDebug_target_compile_features)
|
2014-04-15 20:09:21 +04:00
|
|
|
|
|
|
|
run_cmake(generate_feature_list)
|
|
|
|
file(READ
|
|
|
|
"${RunCMake_BINARY_DIR}/generate_feature_list-build/features.txt"
|
|
|
|
FEATURES
|
|
|
|
)
|
|
|
|
|
|
|
|
if (NOT FEATURES)
|
|
|
|
run_cmake(NoSupportedCxxFeatures)
|
|
|
|
run_cmake(NoSupportedCxxFeaturesGenex)
|
|
|
|
endif()
|
2014-04-30 20:07:38 +04:00
|
|
|
|
|
|
|
foreach(standard 98 11)
|
|
|
|
file(READ
|
|
|
|
"${RunCMake_BINARY_DIR}/generate_feature_list-build/cxx${standard}_flag.txt"
|
|
|
|
CXX${standard}_FLAG
|
|
|
|
)
|
|
|
|
if (CXX${standard}_FLAG STREQUAL NOTFOUND)
|
|
|
|
run_cmake(RequireCXX${standard})
|
|
|
|
run_cmake(RequireCXX${standard}Variable)
|
|
|
|
endif()
|
|
|
|
if (CXX${standard}EXT_FLAG STREQUAL NOTFOUND)
|
|
|
|
run_cmake(RequireCXX${standard}Ext)
|
|
|
|
run_cmake(RequireCXX${standard}ExtVariable)
|
|
|
|
endif()
|
|
|
|
endforeach()
|