Skip to content

Commit

Permalink
cmake: Silence configuration warning when MSVC is selected as generat…
Browse files Browse the repository at this point in the history
…or. (#872)
  • Loading branch information
dmitrykos committed Jan 12, 2024
1 parent 0c19240 commit daaf637
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/modules/FindJACK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ list(APPEND JACK_LINK_LIBRARIES Regex::regex)

if(NOT CMAKE_USE_PTHREADS_INIT)
# This CMake find module is provided by the pthreads port in vcpkg.
find_package(pthreads)
list(APPEND JACK_LINK_LIBRARIES PThreads4W::PThreads4W)
find_package(pthreads QUIET)
if(pthreads_FOUND)
list(APPEND JACK_LINK_LIBRARIES PThreads4W::PThreads4W)
endif()
endif()

if(CMAKE_USE_PTHREADS_INIT OR TARGET PThreads4W::PThreads4W)
Expand Down

0 comments on commit daaf637

Please sign in to comment.