Use CMake target Threads::Threads
This commit is contained in:
parent
244cfc4271
commit
0ec5a11473
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ add_library(simple-web-server INTERFACE)
|
||||||
target_include_directories(simple-web-server INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(simple-web-server INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
target_link_libraries(simple-web-server INTERFACE ${CMAKE_THREAD_LIBS_INIT})
|
target_link_libraries(simple-web-server INTERFACE Threads::Threads)
|
||||||
|
|
||||||
# TODO 2020 when Debian Jessie LTS ends:
|
# TODO 2020 when Debian Jessie LTS ends:
|
||||||
# Remove Boost system, thread, regex components; use Boost::<component> aliases; remove Boost target_include_directories
|
# Remove Boost system, thread, regex components; use Boost::<component> aliases; remove Boost target_include_directories
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue