Skip to content

Commit

Permalink
fix: Fix ability to use Valhalla via cmake add_subdirectory (valhal…
Browse files Browse the repository at this point in the history
  • Loading branch information
kinkard authored Oct 17, 2024
1 parent 1967e33 commit b71dc96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* **Removed**
* **Bug Fix**
* FIXED: `incremental_build_tiles` script works again [#4909](https://github.com/valhalla/valhalla/pull/4909)
* FIXED: Fix ability to use Valhalla via cmake `add_subdirectory` [#4930](https://github.com/valhalla/valhalla/pull/4930)
* **Enhancement**

## Release Date: 2024-10-10 Valhalla 3.5.1
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ find_package(Threads REQUIRED)

# resolve vendored libraries
set(date_include_dir ${VALHALLA_SOURCE_DIR}/third_party/date/include)
set(rapidjson_include_dir ${CMAKE_SOURCE_DIR}/third_party/rapidjson/include)
set(robinhoodhashing_include_dir ${CMAKE_SOURCE_DIR}/third_party/robin-hood-hashing/src/include)
set(rapidjson_include_dir ${VALHALLA_SOURCE_DIR}/third_party/rapidjson/include)
set(robinhoodhashing_include_dir ${VALHALLA_SOURCE_DIR}/third_party/robin-hood-hashing/src/include)
set(cxxopts_include_dir ${VALHALLA_SOURCE_DIR}/third_party/cxxopts/include)
set(dirent_include_dir ${CMAKE_SOURCE_DIR}/third_party/dirent/include)
set(dirent_include_dir ${VALHALLA_SOURCE_DIR}/third_party/dirent/include)
if (PREFER_EXTERNAL_DEPS)
# date
find_package(date QUIET)
Expand Down
4 changes: 2 additions & 2 deletions cmake/ValhallaPkgConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function(configure_valhalla_pc)
list(JOIN LIBS_PRIVATE " " LIBS_PRIVATE)

configure_file(
${CMAKE_SOURCE_DIR}/libvalhalla.pc.in
${CMAKE_BINARY_DIR}/libvalhalla.pc
${VALHALLA_SOURCE_DIR}/libvalhalla.pc.in
${VALHALLA_BUILD_DIR}/libvalhalla.pc
@ONLY)
endfunction()

0 comments on commit b71dc96

Please sign in to comment.