Improve noexception test

This commit is contained in:
Vladislav Shchapov
2021-12-26 16:28:41 -08:00
committed by Victor Zverovich
parent 3bbf2c673c
commit 33ee4cc516
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ if (FMT_PEDANTIC)
check_cxx_compiler_flag(-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG)
endif ()
if (HAVE_FNO_EXCEPTIONS_FLAG)
add_library(noexception-test ../src/format.cc)
add_library(noexception-test ../src/format.cc noexception-test.cc)
target_include_directories(
noexception-test PRIVATE ${PROJECT_SOURCE_DIR}/include)
target_compile_options(noexception-test PRIVATE -fno-exceptions)