Merge topic 'compiler-features-robustness'

150e1b27 Features: Extract strings from test binary more reliably (#15736)
This commit is contained in:
Brad King 2015-09-11 11:04:04 -04:00 committed by CMake Topic Stage
commit 8fb496a6c5
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ macro(record_compiler_features lang compile_flags feature_list)
string(TOLOWER ${lang} lang_lc)
file(REMOVE "${CMAKE_BINARY_DIR}/CMakeFiles/feature_tests.bin")
file(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/feature_tests.${lang_lc}" "
const char features[] = {\"\"\n")
const char features[] = {\"\\n\"\n")
get_property(known_features GLOBAL PROPERTY CMAKE_${lang}_KNOWN_FEATURES)