Skip to content

Commit 5dc0286

Browse files
Merge pull request #372 from christian-rauch/win32_lean_and_mean
compile with WIN32_LEAN_AND_MEAN on Windows
2 parents 41f5bb0 + fff0579 commit 5dc0286

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ set(default_build_type "Release")
3434

3535
SET(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
3636

37+
if(WIN32)
38+
add_compile_definitions(WIN32_LEAN_AND_MEAN)
39+
endif()
40+
3741
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
3842
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
3943
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE)

0 commit comments

Comments
 (0)