summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/COMPILE_LANGUAGE-genex/CompileOptions.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/COMPILE_LANGUAGE-genex/CompileOptions.cmake')
-rw-r--r--Tests/RunCMake/COMPILE_LANGUAGE-genex/CompileOptions.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/COMPILE_LANGUAGE-genex/CompileOptions.cmake b/Tests/RunCMake/COMPILE_LANGUAGE-genex/CompileOptions.cmake
new file mode 100644
index 0000000..6c92abc
--- /dev/null
+++ b/Tests/RunCMake/COMPILE_LANGUAGE-genex/CompileOptions.cmake
@@ -0,0 +1,5 @@
+
+enable_language(CXX)
+
+add_executable(main main.cpp)
+target_compile_options(main PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-DANYTHING>)