mirror of
https://github.com/nemtrif/utfcpp.git
synced 2025-04-04 13:05:06 +00:00
Added compiler options to enable warnings.
This commit is contained in:
parent
d8b92208fd
commit
ee90a4a528
2 changed files with 5 additions and 1 deletions
2
extern/ftest
vendored
2
extern/ftest
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 9c7e60cc1b7c76f59e2ffbbc3dad15bafc5cdac5
|
||||
Subproject commit bf75576064fce2e07f52cd63a3e410f12358728b
|
|
@ -19,6 +19,10 @@ target_link_libraries(cpp17 PRIVATE utf8::cpp)
|
|||
target_link_libraries(apitests PRIVATE utf8::cpp)
|
||||
target_link_libraries(noexceptionstests PRIVATE utf8::cpp)
|
||||
|
||||
target_compile_options(${PROJECT_NAME} INTERFACE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/W4>
|
||||
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic>)
|
||||
|
||||
target_compile_options(noexceptionstests PUBLIC -fno-exceptions)
|
||||
|
||||
set_target_properties(negative apitests noexceptionstests
|
||||
|
|
Loading…
Add table
Reference in a new issue