Skip to content

Commit

Permalink
Fixed build with GCC 11 by moving MSVC flags. (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
  • Loading branch information
xvitaly authored Feb 1, 2021
1 parent 13a6c41 commit 10910b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,9 @@ set(flags_to_test
-fPIC
-D_FORTIFY_SOURCE=2
#-flto
-fvisibility=hidden
/GS
/sdl)
-fvisibility=hidden)
if(MSVC)
list(APPEND flags_to_test /MP)
list(APPEND flags_to_test /MP /GS /sdl)
else()
option(NATIVE "Build for native performance (march=native)")
list(INSERT flags_to_test 0 -Wall)
Expand Down

0 comments on commit 10910b7

Please sign in to comment.