summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FileAPIExternalSource
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2019-09-24 19:19:49 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-26 14:56:52 (GMT)
commit8b84c046faa9d6e52b99855a955bd7b6f48e9a8b (patch)
tree7cac01f0a25d97fe924ae42600193ffc2644beff /Tests/RunCMake/FileAPIExternalSource
parentc71ac889ba6565c2a2aa31a403e3ab999abb5570 (diff)
downloadCMake-8b84c046faa9d6e52b99855a955bd7b6f48e9a8b.zip
CMake-8b84c046faa9d6e52b99855a955bd7b6f48e9a8b.tar.gz
CMake-8b84c046faa9d6e52b99855a955bd7b6f48e9a8b.tar.bz2
fileapi: add some source property backtraces
Support backtraces for COMPILE_DEFINITIONS, COMPILE_OPTIONS, and INCLUDE_DIRECTORIES source properties.
Diffstat (limited to 'Tests/RunCMake/FileAPIExternalSource')
-rw-r--r--Tests/RunCMake/FileAPIExternalSource/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/FileAPIExternalSource/CMakeLists.txt b/Tests/RunCMake/FileAPIExternalSource/CMakeLists.txt
index f5670a7..b3ca660 100644
--- a/Tests/RunCMake/FileAPIExternalSource/CMakeLists.txt
+++ b/Tests/RunCMake/FileAPIExternalSource/CMakeLists.txt
@@ -10,3 +10,4 @@ set_property(SOURCE empty.c PROPERTY COMPILE_DEFINITIONS EMPTY_C=1 SRC_DUMMY)
set_property(SOURCE empty.c PROPERTY INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}")
target_include_directories(generated_exe SYSTEM PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_compile_definitions(generated_exe PRIVATE GENERATED_EXE=1 -DTGT_DUMMY)
+set_source_files_properties(empty.c PROPERTIES COMPILE_OPTIONS SRC_COMPILE_OPTIONS_DUMMY)