diff options
author | Brad King <brad.king@kitware.com> | 2017-11-17 16:54:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-17 16:55:58 (GMT) |
commit | c5a82d0f883b4e8f34c380117316d3fa1a97c3d2 (patch) | |
tree | 8a09c68c5948970f462aed20342e95a87956b612 /Tests | |
parent | 25773650400a6c584da45a92f9b51905101d9420 (diff) | |
download | CMake-c5a82d0f883b4e8f34c380117316d3fa1a97c3d2.zip CMake-c5a82d0f883b4e8f34c380117316d3fa1a97c3d2.tar.gz CMake-c5a82d0f883b4e8f34c380117316d3fa1a97c3d2.tar.bz2 |
Tests: Decouple COMPILE_LANGUAGE in file(GENERATE) from COMPILE_OPTIONS
Simplify the `RunCMake.File_Generate` test `COMPILE_LANGUAGE-genex`
case to avoid requiring support for the genex in `COMPILE_OPTIONS`.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake b/Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake index 59ccf19..bead2af 100644 --- a/Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake +++ b/Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake @@ -1,12 +1,6 @@ - enable_language(CXX C) -add_library(empty empty.cpp empty.c) -target_compile_options(empty - PRIVATE LANG_IS_$<COMPILE_LANGUAGE> -) - file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/opts-$<COMPILE_LANGUAGE>.txt - CONTENT "$<TARGET_PROPERTY:empty,COMPILE_OPTIONS>\n" + CONTENT "LANG_IS_$<COMPILE_LANGUAGE>\n" ) |