Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
797d7213
Commit
797d7213
authored
Feb 03, 2016
by
Mario Werner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restored smoke test for syntax compatibility with the 98 c++ standard
parent
56cfd9f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
test/CMakeLists.txt
test/CMakeLists.txt
+14
-0
No files found.
test/CMakeLists.txt
View file @
797d7213
...
...
@@ -107,6 +107,20 @@ if (HAVE_FNO_EXCEPTIONS_FLAG)
target_compile_options
(
noexception-test PRIVATE -fno-exceptions
)
endif
()
if
(
FMT_PEDANTIC
)
# syntax test which checks if the library builds in c++98 mode
file
(
GLOB test_src *.cc *.h
)
file
(
GLOB lib_src ../cppformat/*.cc ../cppformat/*.h
)
add_library
(
testformat STATIC
${
test_src
}
${
lib_src
}
)
target_include_directories
(
testformat PRIVATE .. ../gmock
)
target_compile_definitions
(
testformat PRIVATE
FMT_USE_FILE_DESCRIPTORS=$<BOOL:
${
HAVE_OPEN
}
>
)
check_cxx_compiler_flag
(
-std=c++98 HAVE_STD_CPP98_FLAG
)
if
(
HAVE_STD_CPP98_FLAG
)
target_compile_options
(
testformat PRIVATE -std=c++98
)
endif
()
endif
()
# Test that the library compiles without windows.h.
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Windows"
)
add_library
(
no-windows-h-test ../cppformat/format.cc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment