Skip to content
Snippets Groups Projects
Commit 6fc10a72 authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

[skip-ci] Fix cmake issue with include directories

parent c308264e
No related branches found
No related tags found
No related merge requests found
Pipeline #11465 skipped
......@@ -99,12 +99,6 @@ ENDIF()
# Configure config.h
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/internal/config.h.in "${WOLF_CONFIG_DIR}/config.h")
message("CONFIG DIRECTORY ${PROJECT_BINARY_DIR}")
include_directories("${PROJECT_BINARY_DIR}/conf")
#INCLUDES SECTION
# ============EXAMPLE==================
include_directories(BEFORE "include")
#HEADERS
SET(HDRS_CAPTURE
......@@ -238,7 +232,11 @@ install(
# Specifies include directories to use when compiling the plugin target
# This way, include_directories does not need to be called in plugins depending on this one
target_include_directories(${PLUGIN_NAME} INTERFACE
#
target_include_directories(${PLUGIN_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/conf>
$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment