Skip to content
Snippets Groups Projects
Commit d7f07a61 authored by Kyle Edwards's avatar Kyle Edwards Committed by Kitware Robot
Browse files

Merge topic 'cmakelibtests-lean-and-mean'


43972299 CMakeLibTests: Compile with WIN32_LEAN_AND_MEAN

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !8750
parents bcbe31a1 43972299
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,9 @@ if(CMake_BUILD_PCH)
target_precompile_headers(CMakeLibTests PRIVATE "<iostream>" "<cm3p/uv.h>")
target_compile_definitions(CMakeLibTests PRIVATE "NOMINMAX")
endif()
if(WIN32)
target_compile_definitions(CMakeLibTests PRIVATE WIN32_LEAN_AND_MEAN)
endif()
set_property(TARGET CMakeLibTests PROPERTY C_CLANG_TIDY "")
set_property(TARGET CMakeLibTests PROPERTY CXX_CLANG_TIDY "")
......@@ -108,4 +111,7 @@ if(CMake_ENABLE_DEBUGGER)
add_test(NAME CMakeLib.testDebuggerNamedPipe-${case} COMMAND testDebuggerNamedPipe ${testDebuggerNamedPipe_${case}_ARGS})
set_property(TEST CMakeLib.testDebuggerNamedPipe-${case} PROPERTY TIMEOUT 300)
endforeach()
if(WIN32)
target_compile_definitions(testDebuggerNamedPipe PRIVATE WIN32_LEAN_AND_MEAN)
endif()
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment