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
56cfd9f4
Commit
56cfd9f4
authored
Feb 03, 2016
by
Mario Werner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installed posix.h too when it is built into the library
parent
e0e8f717
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
cppformat/CMakeLists.txt
cppformat/CMakeLists.txt
+6
-4
No files found.
cppformat/CMakeLists.txt
View file @
56cfd9f4
#------------------------------------------------------------------------------
# define the cppformat library, its includes and the needed defines
set
(
FMT_SOURCES format.cc format.h
)
set
(
FMT_HEADERS format.h
)
set
(
FMT_SOURCES format.cc
)
if
(
HAVE_OPEN
)
set
(
FMT_SOURCES
${
FMT_SOURCES
}
posix.cc posix.h
)
set
(
FMT_HEADERS
${
FMT_HEADERS
}
posix.h
)
set
(
FMT_SOURCES
${
FMT_SOURCES
}
posix.cc
)
endif
()
add_library
(
cppformat
${
FMT_SOURCES
}
)
add_library
(
cppformat
${
FMT_SOURCES
}
${
FMT_HEADERS
}
)
target_compile_options
(
cppformat PUBLIC
${
CPP11_FLAG
}
)
# starting with cmake 3.1 the CXX_STANDARD property can be used
if
(
FMT_PEDANTIC
)
...
...
@@ -75,5 +77,5 @@ if (FMT_INSTALL)
# Install the library and the include file.
install
(
TARGETS
${
INSTALL_TARGETS
}
EXPORT
${
targets_export_name
}
DESTINATION
${
FMT_LIB_DIR
}
)
install
(
FILES
format.h
DESTINATION include/cppformat
)
install
(
FILES
${
FMT_HEADERS
}
DESTINATION include/cppformat
)
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