mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-29 05:11:05 +00:00
Improve noexception test
This commit is contained in:
parent
3bbf2c673c
commit
33ee4cc516
@ -144,7 +144,7 @@ if (FMT_PEDANTIC)
|
|||||||
check_cxx_compiler_flag(-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG)
|
check_cxx_compiler_flag(-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG)
|
||||||
endif ()
|
endif ()
|
||||||
if (HAVE_FNO_EXCEPTIONS_FLAG)
|
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(
|
target_include_directories(
|
||||||
noexception-test PRIVATE ${PROJECT_SOURCE_DIR}/include)
|
noexception-test PRIVATE ${PROJECT_SOURCE_DIR}/include)
|
||||||
target_compile_options(noexception-test PRIVATE -fno-exceptions)
|
target_compile_options(noexception-test PRIVATE -fno-exceptions)
|
||||||
|
18
test/noexception-test.cc
Normal file
18
test/noexception-test.cc
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// Formatting library for C++ - Noexception tests
|
||||||
|
//
|
||||||
|
// Copyright (c) 2012 - present, Victor Zverovich
|
||||||
|
// All rights reserved.
|
||||||
|
//
|
||||||
|
// For the license information refer to format.h.
|
||||||
|
|
||||||
|
#include "fmt/args.h"
|
||||||
|
#include "fmt/chrono.h"
|
||||||
|
#include "fmt/color.h"
|
||||||
|
#include "fmt/compile.h"
|
||||||
|
#include "fmt/core.h"
|
||||||
|
#include "fmt/format.h"
|
||||||
|
#include "fmt/os.h"
|
||||||
|
#include "fmt/ostream.h"
|
||||||
|
#include "fmt/printf.h"
|
||||||
|
#include "fmt/ranges.h"
|
||||||
|
#include "fmt/xchar.h"
|
Loading…
Reference in New Issue
Block a user