Prevent usage of include_directories

Rather use target_include_directories
experiment/srcref_basic_cfg
Martchus 6 years ago
parent 3b04ed0b30
commit 11e2c48c06

@ -55,4 +55,8 @@ configure_file(
)
# ensure generated include files can be included via #include "resources/config.h"
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
foreach(TARGET_NAME ${TARGET_PREFIX}${META_PROJECT_NAME}${TARGET_SUFFIX} ${TARGET_PREFIX}${META_PROJECT_NAME}${TARGET_SUFFIX}_static ${TARGET_PREFIX}${META_PROJECT_NAME}${TARGET_SUFFIX}_tests)
if(TARGET ${TARGET_NAME})
target_include_directories(${TARGET_NAME} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
endif()
endforeach()

Loading…
Cancel
Save