From d945c8681b7ad3fbdc7285679be023d5b2771d8f Mon Sep 17 00:00:00 2001 From: Vasiliy Glazov Date: Sun, 7 Feb 2021 11:14:53 +0300 Subject: [PATCH] Fixed build with GCC 11 by moving MSVC flags. --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea3fac84a..26f352e52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,11 +100,9 @@ set(flags_to_test -Wformat-security -fPIE -fPIC - -D_FORTIFY_SOURCE=2 - /GS - /sdl) + -D_FORTIFY_SOURCE=2) if(MSVC) - list(APPEND flags_to_test /MP) + list(APPEND flags_to_test /MP /GS /GS) else() option(NATIVE "Build for native performance (march=native)") list(INSERT flags_to_test 0 -Wall)