mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
[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:
parent
16b04e1772
commit
5608b8735e
@ -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++
|
||||
|
Loading…
x
Reference in New Issue
Block a user