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
e02aacc6
Commit
e02aacc6
authored
Mar 13, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CMake namespace (#511)
parent
aee4512c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
CMakeLists.txt
CMakeLists.txt
+6
-2
No files found.
CMakeLists.txt
View file @
e02aacc6
...
...
@@ -104,6 +104,7 @@ if (HAVE_OPEN)
endif
()
add_library
(
fmt
${
FMT_SOURCES
}
${
FMT_HEADERS
}
README.rst ChangeLog.rst
)
add_library
(
fmt::fmt ALIAS fmt
)
# Starting with CMake 3.1 the CXX_STANDARD property can be used instead.
# Don't export -std since it may break projects that use other standards.
...
...
@@ -170,14 +171,17 @@ if (FMT_INSTALL)
${
PROJECT_SOURCE_DIR
}
/support/cmake/fmt-config.cmake.in
${
project_config
}
INSTALL_DESTINATION
${
FMT_CMAKE_DIR
}
)
export
(
TARGETS
${
INSTALL_TARGETS
}
# Use a namespace because CMake provides better diagnostics for namespaced
# imported targets.
export
(
TARGETS
${
INSTALL_TARGETS
}
NAMESPACE fmt::
FILE
${
PROJECT_BINARY_DIR
}
/
${
targets_export_name
}
.cmake
)
# Install version, config and target files.
install
(
FILES
${
project_config
}
${
version_config
}
DESTINATION
${
FMT_CMAKE_DIR
}
)
install
(
EXPORT
${
targets_export_name
}
DESTINATION
${
FMT_CMAKE_DIR
}
)
install
(
EXPORT
${
targets_export_name
}
DESTINATION
${
FMT_CMAKE_DIR
}
,
NAMESPACE fmt::
)
# Install the library and headers.
install
(
TARGETS
${
INSTALL_TARGETS
}
EXPORT
${
targets_export_name
}
...
...
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