Skip to content

Commit

Permalink
Fix addition of -fno-strict-aliasing compiler option (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesRumble-IMG authored Nov 18, 2024
1 parent 1cea0da commit ca46376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ endif()
add_compile_definitions($<$<CONFIG:DEBUG>:VKB_DEBUG>)

# globally set -fno-strict-aliasing, needed due to using reinterpret_cast
if (!MSVC)
add_compile_options(-fno_strict_aliasing)
if (NOT MSVC)
add_compile_options(-fno-strict-aliasing)
endif()

if(MSVC AND (DEFINED CMAKE_C_COMPILER_LAUNCHER))
Expand Down

0 comments on commit ca46376

Please sign in to comment.