Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux authored Sep 21, 2023
1 parent 3cc5521 commit 1f5aae2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,8 @@ else()
endforeach()
endif()

if(MSVC)
if(NOT BUILD_SHARED_LIBS)
# With CMake 3.27+ ZERO_CHECK target will create a cyclic dependencies error.
set(CMAKE_SUPPRESS_REGENERATION TRUE)
else()
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
if(MSVC AND BUILD_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()

# Disable CTest targets
Expand Down

0 comments on commit 1f5aae2

Please sign in to comment.