Skip to content

Commit

Permalink
Merge pull request #259 from fcelda/fix-include-directories
Browse files Browse the repository at this point in the history
build: cmake: fix target_include_directories
  • Loading branch information
oschwald authored Apr 27, 2021
2 parents e7f134b + 123a66d commit 588fdc7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,9 @@ endif()
set(CMAKE_SHARED_LIBRARY_PREFIX lib)
set(CMAKE_STATIC_LIBRARY_PREFIX lib)

set(MAXMINDB_INCLUDE_DIR
.
include
)

target_include_directories(maxminddb PUBLIC
$<BUILD_INTERFACE:${MAXMINDB_INCLUDE_DIR}>
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

Expand Down

0 comments on commit 588fdc7

Please sign in to comment.