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