cbf07569ed
This reverts commit 2bee6f5ba5b3f33817cc00e056a7df60d05c9399. This expression is not used, and has a semantic which is not completely optimal (namely considering utility targets to be targets, though usually we are interested in linkable targets). Remove it so that we have more freedom to define better expressions in the future. Conflicts: Source/cmGeneratorExpressionEvaluator.cxx Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt Tests/CMakeCommands/target_compile_definitions/consumer.cpp
23 lines
517 B
CMake
23 lines
517 B
CMake
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(target_compile_definitions)
|
|
|
|
add_executable(target_compile_definitions
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/main.cpp"
|
|
)
|
|
target_compile_definitions(target_compile_definitions
|
|
PRIVATE MY_PRIVATE_DEFINE
|
|
PUBLIC MY_PUBLIC_DEFINE
|
|
INTERFACE MY_INTERFACE_DEFINE
|
|
)
|
|
|
|
add_executable(consumer
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/consumer.cpp"
|
|
)
|
|
|
|
target_compile_definitions(consumer
|
|
PRIVATE $<TARGET_PROPERTY:target_compile_definitions,INTERFACE_COMPILE_DEFINITIONS>
|
|
-DDASH_D_DEFINE
|
|
)
|