summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-17 16:54:13 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-17 16:55:58 (GMT)
commitc5a82d0f883b4e8f34c380117316d3fa1a97c3d2 (patch)
tree8a09c68c5948970f462aed20342e95a87956b612 /Tests
parent25773650400a6c584da45a92f9b51905101d9420 (diff)
downloadCMake-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.cmake8
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"
)