Skip to content

Commit 945f490

Browse files
add suggest fix from Andre (#67)
1 parent 2e53b6d commit 945f490

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

config_utilities/cmake/config_utilitiesConfig.cmake.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@PACKAGE_INIT@
22

3-
get_filename_component(config_utilities_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}"
4-
PATH)
3+
get_filename_component(config_utilities_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
54
include(CMakeFindDependencyMacro)
65

76
find_dependency(yaml-cpp REQUIRED)
7+
88
if (@Eigen3_FOUND@) # expanded from Eigen3_FOUND during build time
99
find_dependency(Eigen3)
1010
endif()
@@ -13,6 +13,10 @@ if (@glog_FOUND@) # expanded from glog_FOUND during build time
1313
find_dependency(glog)
1414
endif()
1515

16+
if(NOT @BUILD_SHARED_LIBS@) # expanded from BUILD_SHARED_LIBS during build time
17+
find_dependency(Boost COMPONENTS dll filesystem system)
18+
endif()
19+
1620
if(NOT TARGET config_utilities::config_utilities)
1721
include("${config_utilities_CMAKE_DIR}/config_utilitiesTargets.cmake")
1822
endif()

0 commit comments

Comments
 (0)