diff --git a/CMakeLists.txt b/CMakeLists.txt index 316e3fc82e..067e5804e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,8 +59,8 @@ endif() add_compile_definitions($<$: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))