Skip to content

Commit

Permalink
Adding threads as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Feb 7, 2024
1 parent 1b2aba1 commit 1f93abb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ option(NOZLIB "Don't use zlib" OFF)
# gauss is default now
add_definitions( -DUSE_GAUSS )

find_package( Threads )

# cannot currently compile static zlib under Windows
if (NOT NOZLIB AND NOT ((NOT BUILD_SHARED_LIBS) AND WIN32))
find_package(ZLIB)
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ GENERATE_EXPORT_HEADER(cmsgen
target_link_libraries(cmsgen
LINK_PUBLIC ${cmsgen_lib_link_libs}
LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT}
${CMAKE_THREAD_LIBS_INIT}
)

if (NOT WIN32)
Expand Down

0 comments on commit 1f93abb

Please sign in to comment.