Skip to content

Commit 231efb6

Browse files
committed
added WIN32_LEAN_AND_MEAN flag to test binary for windows builds
1 parent 4d9e74c commit 231efb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hazelcast/test/src/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ target_compile_definitions(
1010
PRIVATE HAZELCAST_VERSION="${PROJECT_VERSION}"
1111
)
1212

13+
# windows-specific compile flags
14+
if (WIN32)
15+
# speeds the build process
16+
target_compile_definitions(client_test PRIVATE WIN32_LEAN_AND_MEAN)
17+
endif ()
18+
1319
if (MSVC)
1420
target_compile_options(client_test PRIVATE /bigobj)
1521
endif()

0 commit comments

Comments
 (0)