File tree Expand file tree Collapse file tree 10 files changed +12
-12
lines changed
congestion-control-emulator Expand file tree Collapse file tree 10 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ find_package(userver REQUIRED COMPONENTS
88 universal
99)
1010
11- find_package (Boost REQUIRED COMPONENTS
11+ find_package (Boost REQUIRED CONFIG COMPONENTS
1212 locale
1313 iostreams
1414)
Original file line number Diff line number Diff line change 77include ("${USERVER_CMAKE_DIR} /ModuleHelpers.cmake" )
88
99find_package (Threads)
10- find_package (Boost REQUIRED COMPONENTS
10+ find_package (Boost REQUIRED CONFIG COMPONENTS
1111 program_options
1212 filesystem
1313 regex
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ file(GLOB_RECURSE INTERNAL_SOURCES
4444
4545list (REMOVE_ITEM SOURCES ${INTERNAL_SOURCES} )
4646
47- find_package (Boost REQUIRED COMPONENTS
47+ find_package (Boost REQUIRED CONFIG COMPONENTS
4848 program_options
4949 filesystem
5050 locale
@@ -148,7 +148,7 @@ if (USERVER_FEATURE_UBOOST_CORO)
148148 ${CMAKE_CURRENT_SOURCE_DIR} /uboost_coro/include
149149 )
150150else ()
151- find_package (Boost REQUIRED COMPONENTS
151+ find_package (Boost REQUIRED CONFIG COMPONENTS
152152 context
153153 coroutine
154154 )
Original file line number Diff line number Diff line change @@ -103,6 +103,6 @@ if(UBOOST_CORO_USE_UCONTEXT)
103103 endif ()
104104endif ()
105105
106- find_package (Boost REQUIRED)
106+ find_package (Boost REQUIRED CONFIG )
107107target_link_libraries (${PROJECT_NAME} PUBLIC Boost::boost userver-internal -compile-options )
108108_userver_install_targets(COMPONENT core TARGETS ${PROJECT_NAME} )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project(userver-tool-congestion-control-emulator CXX)
22
33file (GLOB_RECURSE SOURCES *.cpp)
44
5- find_package (Boost REQUIRED COMPONENTS program_options)
5+ find_package (Boost REQUIRED CONFIG COMPONENTS program_options)
66
77add_executable (${PROJECT_NAME} ${SOURCES} )
88target_link_libraries (${PROJECT_NAME}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project(userver-tool-dns-resolver CXX)
22
33file (GLOB_RECURSE SOURCES *.cpp)
44
5- find_package (Boost REQUIRED COMPONENTS program_options)
5+ find_package (Boost REQUIRED CONFIG COMPONENTS program_options)
66
77add_executable (${PROJECT_NAME} ${SOURCES} )
88target_link_libraries (${PROJECT_NAME}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project(userver-tool-engine-perf)
22
33file (GLOB_RECURSE SOURCES *.cpp)
44
5- find_package (Boost REQUIRED COMPONENTS program_options)
5+ find_package (Boost REQUIRED CONFIG COMPONENTS program_options)
66
77add_executable (${PROJECT_NAME} ${SOURCES} )
88target_link_libraries (${PROJECT_NAME}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project(userver-tool-http-client-perf CXX)
22
33file (GLOB_RECURSE SOURCES *.cpp)
44
5- find_package (Boost REQUIRED COMPONENTS program_options)
5+ find_package (Boost REQUIRED CONFIG COMPONENTS program_options)
66
77add_executable (${PROJECT_NAME} ${SOURCES} )
88target_link_libraries (${PROJECT_NAME}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project(userver-tool-netcat CXX)
22
33file (GLOB_RECURSE SOURCES *.cpp)
44
5- find_package (Boost REQUIRED COMPONENTS program_options)
5+ find_package (Boost REQUIRED CONFIG COMPONENTS program_options)
66
77add_executable (${PROJECT_NAME} ${SOURCES} )
88target_link_libraries (${PROJECT_NAME}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ list(REMOVE_ITEM SOURCES ${UNIT_TEST_SOURCES} ${BENCH_SOURCES} ${INTERNAL_SOURCE
3232set (CMAKE_THREAD_PREFER_PTHREAD ON )
3333set (THREADS_PREFER_PTHREAD_FLAG ON )
3434find_package (Threads REQUIRED)
35- find_package (Boost REQUIRED
35+ find_package (Boost REQUIRED CONFIG
3636 COMPONENTS
3737 program_options
3838 filesystem
@@ -41,7 +41,7 @@ find_package(Boost REQUIRED
4141 OPTIONAL_COMPONENTS
4242 stacktrace_backtrace
4343)
44- include (UserverRequireDWCAS) # Should be called after `find_package(Boost REQUIRED )`
44+ include (UserverRequireDWCAS) # Should be called after `find_package(Boost)`
4545
4646message (STATUS "boost: ${Boost_VERSION_STRING} " )
4747if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
You can’t perform that action at this time.
0 commit comments