From 7811a1b7529f4218329f5ef1492f1b226c23a2ef Mon Sep 17 00:00:00 2001 From: Theodore Kisner Date: Tue, 25 Jan 2022 10:29:00 -0800 Subject: [PATCH] Add boost dependency information to exported Spt3gConfig.cmake (#71) 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. --- cmake/Spt3gConfig.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/Spt3gConfig.cmake.in b/cmake/Spt3gConfig.cmake.in index fbc500c2..8131655b 100644 --- a/cmake/Spt3gConfig.cmake.in +++ b/cmake/Spt3gConfig.cmake.in @@ -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@)