Skip to content

Commit

Permalink
Add boost dependency information to exported Spt3gConfig.cmake (#71)
Browse files Browse the repository at this point in the history
This makes a small change to the input Spt3gConfig.cmake.in file
to include the exported boost package info.  Without this,
external code that uses Spt3gConfig.cmake cannot resolve the
Boost linking dependency.
  • Loading branch information
tskisner authored Jan 25, 2022
1 parent 4b0b228 commit 7811a1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/Spt3gConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
set(Boost_PYTHON_TYPE @Boost_PYTHON_TYPE@)
find_dependency(Boost COMPONENTS system iostreams filesystem ${Boost_PYTHON_TYPE} REQUIRED)

set(SPT3G_SOURCE_DIR @CMAKE_SOURCE_DIR@)
set(SPT3G_BUILD_DIR @CMAKE_BINARY_DIR@)
set(SPT3G_INCLUDE_INSTALL_DIR @PACKAGE_INCLUDE_INSTALL_DIR@)
Expand Down

0 comments on commit 7811a1b

Please sign in to comment.