Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Fixed build with GCC 11 by moving MSVC flags. #585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change it to list(APPEND flags_to_test /MP /GS /sdl)? I guess it is a typo.

else()
option(NATIVE "Build for native performance (march=native)")
list(INSERT flags_to_test 0 -Wall)
Expand Down