Skip to content

Commit

Permalink
build: use find_dependency in exported CMake Config
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Dec 4, 2024
1 parent f8d05b0 commit dfa6928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ find_package(ICU 60
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
set(boost_stacktrace_component stacktrace_backtrace)
find_package(Boost 1.65
COMPONENTS container
COMPONENTS stacktrace_backtrace
COMPONENTS ${boost_stacktrace_component}
REQUIRED)

find_package(Doxygen
Expand Down
3 changes: 3 additions & 0 deletions cmake/Config.cmake.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include(CMakeFindDependencyMacro)
find_dependency(Boost 1.65 COMPONENTS @boost_stacktrace_component@ REQUIRED)

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")

0 comments on commit dfa6928

Please sign in to comment.