Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
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
spdlog
Commits
d368ed58
Unverified
Commit
d368ed58
authored
Aug 04, 2021
by
Gabi Melman
Committed by
GitHub
Aug 04, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2029 from daverigby/relocatable_export
Ensure exported package is relocatable
parents
dd6d2034
87095a9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
CMakeLists.txt
CMakeLists.txt
+2
-1
cmake/spdlogConfig.cmake.in
cmake/spdlogConfig.cmake.in
+4
-0
No files found.
CMakeLists.txt
View file @
d368ed58
...
...
@@ -307,7 +307,8 @@ if(SPDLOG_INSTALL)
install
(
EXPORT spdlog DESTINATION
${
export_dest_dir
}
NAMESPACE spdlog:: FILE
${
config_targets_file
}
)
include
(
CMakePackageConfigHelpers
)
configure_file
(
"
${
project_config_in
}
"
"
${
project_config_out
}
"
@ONLY
)
configure_package_config_file
(
"
${
project_config_in
}
"
"
${
project_config_out
}
"
INSTALL_DESTINATION
${
export_dest_dir
}
)
write_basic_package_version_file
(
"
${
version_config_file
}
"
COMPATIBILITY SameMajorVersion
)
install
(
FILES
"
${
project_config_out
}
"
"
${
version_config_file
}
"
DESTINATION
"
${
export_dest_dir
}
"
)
...
...
cmake/spdlogConfig.cmake.in
View file @
d368ed58
# Copyright(c) 2019 spdlog authors
# Distributed under the MIT License (http://opensource.org/licenses/MIT)
@PACKAGE_INIT@
find_package(Threads REQUIRED)
set(SPDLOG_FMT_EXTERNAL @SPDLOG_FMT_EXTERNAL@)
...
...
@@ -13,3 +15,5 @@ endif()
include("${CMAKE_CURRENT_LIST_DIR}/${config_targets_file}")
check_required_components(spdlog)
\ No newline at end of file
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