mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Define WIN32_LEAN_AND_MEAN for CMake sources on Windows
This reduces APIs included by `windows.h`. We can include the headers for those APIs as needed.
This commit is contained in:
@@ -45,9 +45,12 @@ endif()
|
||||
|
||||
set(EXECUTABLE_OUTPUT_PATH ${CMake_BIN_DIR})
|
||||
|
||||
# ensure Unicode friendly APIs are used on Windows
|
||||
if(WIN32)
|
||||
# ensure Unicode friendly APIs are used on Windows
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
|
||||
# minimize windows.h content
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
endif()
|
||||
|
||||
# configure the .dox.in file
|
||||
|
||||
Reference in New Issue
Block a user