compilerDefinitions.cmake: fixed faulty `add_compile_definitions()` value for MSVC (#5690)

also fixes `<command line>(7,9): error : macro name must be an
identifier` with `clang-cl` allowing the build to complete
This commit is contained in:
Oliver Stöneberg 2023-11-22 11:02:35 +01:00 committed by GitHub
parent 8b6cbe2e9e
commit 693702d98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
if (MSVC)
# Visual Studio only sets _DEBUG
add_compile_definitions($<$<CONFIG:Debug>:-DDEBUG>)
add_compile_definitions($<$<CONFIG:Debug>:DEBUG>)
add_definitions(-DWIN32)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)