We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f88cca commit 3b39b87Copy full SHA for 3b39b87
CMakeLists.txt
@@ -7,11 +7,16 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
7
endif()
8
9
if(WIN32)
10
- # Enable Math Constants
11
- # https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=vs-2019
12
add_compile_definitions(
+ # For math constants
+ # https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=vs-2019
13
_USE_MATH_DEFINES
14
+ # Minimize Windows namespace collision
15
+ NOMINMAX
16
+ WIN32_LEAN_AND_MEAN
17
)
18
+ # set the same behavior for windows as it is on linux
19
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
20
21
22
set(THIS_PACKAGE_INCLUDE_DEPENDS
0 commit comments