summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-05 17:33:00 +0200
committerEgor Tensin <egor@tensin.name>2026-06-05 17:33:00 +0200
commit753f36ae3e9a16232c85d22d312242629b6da77d (patch)
tree29f6ecc77a9bbd1185eef4bd3b45f586bd3d1e58
parentupgrade winapi-common (diff)
downloadwinapi-debug-753f36ae3e9a16232c85d22d312242629b6da77d.tar.gz
winapi-debug-753f36ae3e9a16232c85d22d312242629b6da77d.zip
cmake: use BoostConfig.cmake
-rw-r--r--CMakeLists.txt2
-rw-r--r--test/unit_tests/CMakeLists.txt2
-rw-r--r--utils/CMakeLists.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e0ee523..9b97e25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,7 +38,7 @@ if(MSVC)
"${CMAKE_SHARED_LINKER_FLAGS_DEBUG}")
endif()
-find_package(Boost REQUIRED)
+find_package(Boost CONFIG REQUIRED)
add_subdirectory(3rdparty/winapi/common EXCLUDE_FROM_ALL)
file(GLOB_RECURSE winapi_debug_include "include/*.hpp")
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt
index 958eb92..22053f1 100644
--- a/test/unit_tests/CMakeLists.txt
+++ b/test/unit_tests/CMakeLists.txt
@@ -1,4 +1,4 @@
-find_package(Boost REQUIRED COMPONENTS filesystem unit_test_framework)
+find_package(Boost CONFIG REQUIRED COMPONENTS filesystem unit_test_framework)
add_executable(unit_tests main.cpp call_stack.cpp dbghelp.cpp)
target_link_libraries(unit_tests PRIVATE test_lib winapi_debug)
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index 62ca7fd..9952377 100644
--- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt
@@ -1,4 +1,4 @@
-find_package(Boost REQUIRED COMPONENTS filesystem program_options)
+find_package(Boost CONFIG REQUIRED COMPONENTS filesystem program_options)
function(add_util name src)
add_executable("${name}" ${src})