Skip to content
Snippets Groups Projects
Commit cb49df15 authored by Yuri Kunde Schlesner's avatar Yuri Kunde Schlesner
Browse files

CMake: Use target properties to add inih include paths

parent 776cb917
No related branches found
No related tags found
No related merge requests found
...@@ -254,9 +254,7 @@ get_git_head_revision(GIT_REF_SPEC GIT_REV) ...@@ -254,9 +254,7 @@ get_git_head_revision(GIT_REF_SPEC GIT_REV)
git_describe(GIT_DESC --always --long --dirty) git_describe(GIT_DESC --always --long --dirty)
git_branch_name(GIT_BRANCH) git_branch_name(GIT_BRANCH)
set(INI_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/externals/inih") add_subdirectory(externals/inih)
include_directories(${INI_PREFIX})
add_subdirectory(${INI_PREFIX})
add_subdirectory(externals) add_subdirectory(externals)
......
...@@ -9,3 +9,4 @@ set(HEADERS ...@@ -9,3 +9,4 @@ set(HEADERS
create_directory_groups(${SRCS} ${HEADERS}) create_directory_groups(${SRCS} ${HEADERS})
add_library(inih ${SRCS} ${HEADERS}) add_library(inih ${SRCS} ${HEADERS})
target_include_directories(inih INTERFACE .)
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