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. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake