Skip to content

Commit

Permalink
Updated ZeroMQ to check the generator to determine the names. This on…
Browse files Browse the repository at this point in the history
…e seems more suspect than the others...
  • Loading branch information
dbs4261 committed Sep 13, 2024
1 parent 23ab68a commit 92711f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions 3rdparty/zeromq/zeromq_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ ExternalProject_Add(
)

if(WIN32)
# On windows the lib name is more complicated
if (${CMAKE_GENERATOR} MATCHES "^Visual Studio.*")
set(ZEROMQ_LIBRARIES ${lib_name}$<$<CONFIG:Debug>:gd>${lib_suffix})
endif()

# On windows we need to link some additional libs. We will use them
# directly as targets in find_dependencies.cmake.
# The following code is taken from the zeromq CMakeLists.txt and collects
Expand All @@ -97,6 +92,9 @@ if(WIN32)
if(HAVE_IPHLPAPI)
list(APPEND ZEROMQ_ADDITIONAL_LIBS iphlpapi)
endif()
endif()
if(MSVC AND ${CMAKE_GENERATOR} MATCHES "^Visual Studio.*")
set(ZEROMQ_LIBRARIES ${lib_name}$<$<CONFIG:Debug>:gd>${lib_suffix})
else()
set(ZEROMQ_LIBRARIES ${lib_name}${lib_suffix})
endif()
Expand Down

0 comments on commit 92711f5

Please sign in to comment.