[C++] Actually use compilation options

Fixes: https://github.com/dankamongmen/notcurses/issues/722

`-Wpedantic` is dropped because C code uses designated structure
initializers which are available in C++20 onward (and we use C++17
ATM). Once we switch to C++20 we should re-enable the flag.

`-fno-exceptions` is dropped because we do have exceptions, so...
This commit is contained in:
Marek Habersack 2020-06-16 22:46:59 +02:00 committed by Nick Black
parent 16b04e1772
commit 5608b8735e

View File

@ -272,7 +272,6 @@ set(NCPP_COMPILE_OPTIONS
-Wnull-dereference -Wnull-dereference
-Wmisleading-indentation -Wmisleading-indentation
-Wunused -Wunused
-Wpedantic
-Wsuggest-override -Wsuggest-override
-Wno-c99-extensions -Wno-c99-extensions
-fno-strict-aliasing -fno-strict-aliasing
@ -281,7 +280,6 @@ set(NCPP_COMPILE_OPTIONS
-finline-limit=300 -finline-limit=300
-fstack-protector -fstack-protector
-fno-rtti -fno-rtti
-fno-exceptions
-fpic -fpic
) )
@ -291,12 +289,12 @@ set(NCPP_COMPILE_DEFINITIONS_PUBLIC
target_compile_options(notcurses++ target_compile_options(notcurses++
PRIVATE PRIVATE
${NCPP_COMPILLE_OPTIONS} ${NCPP_COMPILE_OPTIONS}
) )
target_compile_options(notcurses++-static target_compile_options(notcurses++-static
PRIVATE PRIVATE
${NCPP_COMPILLE_OPTIONS} ${NCPP_COMPILE_OPTIONS}
) )
target_compile_definitions(notcurses++ target_compile_definitions(notcurses++