[CMake] CMake 2.8.10-rc1 ready for testing!
Stephen Kelly
steveire at gmail.com
Fri Oct 5 04:54:20 EDT 2012
Rolf Eike Beer wrote:
>>$<TARGET_PROPERTY:prop> = The value of the property prop on
>>
>>the target on which the generator expression is evaluated.
>
> Then tell me on which target an include_directories is evaluated on ;)
Each of them:
add_executable(foo ${foo_SRCS})
add_library(bar ${bar_SRCS})
include_directories(
"$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:/some/include>"
)
add_executable(bat ${bat_SRCS})
add_library(bag ${bag_SRCS})
The expression will be evaluated for each target, the TYPE will be checked,
and the include directory added or not.
Thanks,
Steve.
More information about the CMake
mailing list