Possible to add an imported library to target_link_libraries that takes care of include directories too?

前端 未结 1 527
萌比男神i
萌比男神i 2020-12-28 17:23

somehow I am struggling with finding out whether it is possible to define an imported library in CMake, specifying target properties (include_directories and library path) a

1条回答
  •  無奈伤痛
    2020-12-28 17:41

    The difference between the INCLUDE_DIRECTORIES property and the INTERFACE_INCLUDE_DIRECTORIES property is transitivity.

    Set INTERFACE_INCLUDE_DIRECTORIES instead.

    http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#transitive-usage-requirements

    0 讨论(0)
提交回复
热议问题