Skip to content

Commit

Permalink
Windows build fix: #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Artiom N. committed Dec 6, 2024
1 parent 1ae5a0d commit be37708
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,6 @@ include(print-variables)
# Build third-party.
#

#if (MSVC)
# set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
#endif()

if (KNP_BUILD_AUTONOMOUS)
if (NOT CPM_SOURCE_CACHE_DEFAULT)
set(CPM_SOURCE_CACHE_DEFAULT "${CMAKE_CURRENT_SOURCE_DIR}/third-party")
Expand All @@ -243,6 +239,15 @@ else()
set(ZMQ_ENABLE_PRECOMPS ON)
endif()

add_third_party("gh:gabime/[email protected]"
OPTIONS
"SPDLOG_BUILD_PIC ON"
"SPDLOG_BUILD_SHARED OFF")

if (MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
endif()

add_third_party(NAME "libzmq"
GITHUB_REPOSITORY "zeromq/libzmq"
VERSION "4.3.5"
Expand Down Expand Up @@ -314,11 +319,6 @@ if ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "^x86.*")
include_directories("${CPM_PACKAGE_pcm_SOURCE_DIR}/src")
endif()

add_third_party("gh:gabime/[email protected]"
OPTIONS
"SPDLOG_BUILD_PIC ON"
"SPDLOG_BUILD_SHARED OFF")

add_third_party("gh:zeromq/[email protected]"
OPTIONS
"CPPZMQ_BUILD_TESTS OFF")
Expand Down

0 comments on commit be37708

Please sign in to comment.