Skip to content

Commit

Permalink
Configure Threads using find_package
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbento committed Nov 2, 2023
1 parent ec291dd commit 4d7a718
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ ecbuild_add_library(
)
target_clangformat(libserver)

find_package(Threads REQUIRED)

# =======================================================
# EXE ecflow_server, if OpenSSL not enabled ${OPENSSL_LIBRARIES}, is empty

Expand All @@ -61,7 +63,7 @@ ecbuild_add_executable(
LIBS
libserver
$<$<BOOL:${OPENSSL_FOUND}>:OpenSSL::SSL>
pthread
Threads::Threads
)
target_clangformat(ecflow_server)

Expand Down Expand Up @@ -105,6 +107,7 @@ ecbuild_add_test(
libserver
Boost::boost # Boost header-only libraries must be available (namely unit_test_framework)
$<$<BOOL:${OPENSSL_FOUND}>:OpenSSL::SSL>
Threads::Threads
TEST_DEPENDS
u_base
)
Expand Down

0 comments on commit 4d7a718

Please sign in to comment.