diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-21 02:18:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-22 13:24:48 (GMT) |
commit | 83491ddd43fb4733940c92e9d7d7647f66f49bbe (patch) | |
tree | 8f7ef01b2cd622e90b4d6824b3bb0b4a609781bd /Source/CMakeLists.txt | |
parent | 1bcacccce9e60800ea826c7e79012a64fec4e687 (diff) | |
download | CMake-83491ddd43fb4733940c92e9d7d7647f66f49bbe.zip CMake-83491ddd43fb4733940c92e9d7d7647f66f49bbe.tar.gz CMake-83491ddd43fb4733940c92e9d7d7647f66f49bbe.tar.bz2 |
Build: `add_definitions()` → `add_compile_definitions()`
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 1182483..2645b7b 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -48,10 +48,10 @@ set(EXECUTABLE_OUTPUT_PATH ${CMake_BIN_DIR}) if(WIN32) # ensure Unicode friendly APIs are used on Windows - add_definitions(-DUNICODE -D_UNICODE) + add_compile_definitions(UNICODE _UNICODE) # minimize windows.h content - add_definitions(-DWIN32_LEAN_AND_MEAN) + add_compile_definitions(WIN32_LEAN_AND_MEAN) endif() # configure the .dox.in file |