mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Remove overrides of default CMake flags
CMake sets these flags to sane defaults depending on which compiler you're using, so overriding them isn't very nice. For example: with g++, I get -- Debug: -g -- RelWithDebInfo: -O2 -g -DNDEBUG -- MinSizeRel: -O2 -g -DNDEBUG -- Release: -O3 -DNDEBUG and with MSVC you get something like -- Debug: /MDd /Zi /Ob0 /Od /RTC1 -- RelWithDebInfo: /MD /Zi /O2 /Ob1 /DNDEBUG -- MinSizeRel: /MD /Zi /O2 /Ob1 /DNDEBUG -- Release: /MD /O2 /Ob2 /DNDEBUG
This commit is contained in:
parent
8aaccf1587
commit
34e06c4440
1 changed files with 0 additions and 3 deletions
|
@ -11,9 +11,6 @@ PROJECT(fish)
|
|||
|
||||
# We are C++11.
|
||||
SET(CMAKE_CXX_STANDARD 11)
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
|
||||
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
|
||||
SET(DEFAULT_BUILD_TYPE "RelWithDebInfo")
|
||||
|
||||
IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
|
|
Loading…
Reference in a new issue