summaryrefslogtreecommitdiffstats
path: root/Tests/ObjectLibrary
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-08 18:12:45 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-02-08 18:21:30 (GMT)
commit510fdcb18801076e2041eaae2941375eecc93ec2 (patch)
tree97cb7b62dc605e8cc8f46cf092ba75911e0a6e6c /Tests/ObjectLibrary
parent4de71786e89ba35190e23ae9e1c05f902c5350ff (diff)
downloadCMake-510fdcb18801076e2041eaae2941375eecc93ec2.zip
CMake-510fdcb18801076e2041eaae2941375eecc93ec2.tar.gz
CMake-510fdcb18801076e2041eaae2941375eecc93ec2.tar.bz2
Whitelist target types in target_{include_directories,compile_definitions}
Setting include directories or compile definitions on a target created with add_custom_target does not make sense.
Diffstat (limited to 'Tests/ObjectLibrary')
-rw-r--r--Tests/ObjectLibrary/A/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/ObjectLibrary/A/CMakeLists.txt b/Tests/ObjectLibrary/A/CMakeLists.txt
index 36c86e7..55778ea 100644
--- a/Tests/ObjectLibrary/A/CMakeLists.txt
+++ b/Tests/ObjectLibrary/A/CMakeLists.txt
@@ -13,6 +13,6 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/a1.c.in
${CMAKE_CURRENT_BINARY_DIR}/a1.c
)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_library(A OBJECT a1.c a2.c)
+target_include_directories(A PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})