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
e0e8f717
Commit
e0e8f717
authored
Feb 03, 2016
by
Mario Werner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FMT_USE_FILE_DESCRIPTORS is apparently only needed for the tests
parent
c0e92610
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
cppformat/CMakeLists.txt
cppformat/CMakeLists.txt
+0
-3
test/CMakeLists.txt
test/CMakeLists.txt
+2
-1
No files found.
cppformat/CMakeLists.txt
View file @
e0e8f717
...
...
@@ -12,9 +12,6 @@ if (FMT_PEDANTIC)
target_compile_options
(
cppformat PRIVATE
${
PEDANTIC_COMPILE_FLAGS
}
)
endif
()
target_compile_definitions
(
cppformat INTERFACE
FMT_USE_FILE_DESCRIPTORS=$<BOOL:
${
HAVE_OPEN
}
>
)
target_include_directories
(
cppformat INTERFACE
$<BUILD_INTERFACE:
${
PROJECT_SOURCE_DIR
}
>
$<INSTALL_INTERFACE:include>
)
...
...
test/CMakeLists.txt
View file @
e0e8f717
...
...
@@ -56,7 +56,8 @@ function(add_fmt_test name)
# define if certain c++ features can be used
target_compile_definitions
(
${
name
}
PRIVATE
FMT_USE_TYPE_TRAITS=$<BOOL:
${
SUPPORTS_TYPE_TRAITS
}
>
FMT_USE_ENUM_BASE=$<BOOL:
${
SUPPORTS_ENUM_BASE
}
>
)
FMT_USE_ENUM_BASE=$<BOOL:
${
SUPPORTS_ENUM_BASE
}
>
FMT_USE_FILE_DESCRIPTORS=$<BOOL:
${
HAVE_OPEN
}
>
)
if
(
FMT_PEDANTIC
)
target_compile_options
(
${
name
}
PRIVATE
${
PEDANTIC_COMPILE_FLAGS
}
)
endif
()
...
...
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