[CMake] link_libraries vs target_link_libraries

Hendrik Sattler post at hendrik-sattler.de
Tue Nov 11 15:11:03 EST 2008


Am Tuesday 11 November 2008 19:13:43 schrieb Fernando Cacciola:
> target_link_libraries, which is GREAT, is actually pretty useless
> without target_include_directories, target_add_definitions and
> <TARGET>_CMAKE_CXX_FLAGS.

Did you notice set_property(TARGET .....)? There, you can do add target 
specific definitions (even per build type) and other stuff. Sadly, this is no 
replacement for target_include_directories() as you have to know the compiler 
syntax.

HS



More information about the CMake mailing list