Skip to content

Commit

Permalink
compilerDefinitions.cmake: fixed faulty add_compile_definitions() v…
Browse files Browse the repository at this point in the history
…alue for MSVC (#5690)

also fixes `<command line>(7,9): error : macro name must be an
identifier` with `clang-cl` allowing the build to complete
  • Loading branch information
firewave committed Nov 22, 2023
1 parent 8b6cbe2 commit 693702d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/compilerDefinitions.cmake
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 693702d

Please sign in to comment.