Skip to content

Commit 3b39b87

Browse files
Export symbols on windows
1 parent 8f88cca commit 3b39b87

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
77
endif()
88

99
if(WIN32)
10-
# Enable Math Constants
11-
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=vs-2019
1210
add_compile_definitions(
11+
# For math constants
12+
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=vs-2019
1313
_USE_MATH_DEFINES
14+
# Minimize Windows namespace collision
15+
NOMINMAX
16+
WIN32_LEAN_AND_MEAN
1417
)
18+
# set the same behavior for windows as it is on linux
19+
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
1520
endif()
1621

1722
set(THIS_PACKAGE_INCLUDE_DEPENDS

0 commit comments

Comments
 (0)