diff options
| author | 2017-05-27 21:59:02 -0700 | |
|---|---|---|
| committer | 2017-05-27 21:59:02 -0700 | |
| commit | cb49df156d080901735731efeb9277ed05bd9124 (patch) | |
| tree | 566f3473cc987d5050e65cfdf96275ba90235a77 | |
| parent | CMake: Define an interface target for SDL2 definitions (diff) | |
| download | yuzu-cb49df156d080901735731efeb9277ed05bd9124.tar.gz yuzu-cb49df156d080901735731efeb9277ed05bd9124.tar.xz yuzu-cb49df156d080901735731efeb9277ed05bd9124.zip | |
CMake: Use target properties to add inih include paths
| -rw-r--r-- | CMakeLists.txt | 4 | ||||
| -rw-r--r-- | externals/inih/CMakeLists.txt | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b746554fe..6376862ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -254,9 +254,7 @@ get_git_head_revision(GIT_REF_SPEC GIT_REV) | |||
| 254 | git_describe(GIT_DESC --always --long --dirty) | 254 | git_describe(GIT_DESC --always --long --dirty) |
| 255 | git_branch_name(GIT_BRANCH) | 255 | git_branch_name(GIT_BRANCH) |
| 256 | 256 | ||
| 257 | set(INI_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/externals/inih") | 257 | add_subdirectory(externals/inih) |
| 258 | include_directories(${INI_PREFIX}) | ||
| 259 | add_subdirectory(${INI_PREFIX}) | ||
| 260 | 258 | ||
| 261 | add_subdirectory(externals) | 259 | add_subdirectory(externals) |
| 262 | 260 | ||
diff --git a/externals/inih/CMakeLists.txt b/externals/inih/CMakeLists.txt index c87f78bfc..cff36a581 100644 --- a/externals/inih/CMakeLists.txt +++ b/externals/inih/CMakeLists.txt | |||
| @@ -9,3 +9,4 @@ set(HEADERS | |||
| 9 | 9 | ||
| 10 | create_directory_groups(${SRCS} ${HEADERS}) | 10 | create_directory_groups(${SRCS} ${HEADERS}) |
| 11 | add_library(inih ${SRCS} ${HEADERS}) | 11 | add_library(inih ${SRCS} ${HEADERS}) |
| 12 | target_include_directories(inih INTERFACE .) | ||