build: cmake: fix target_include_directories
@@ -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>
)
