Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LoadStaticSharedTargets
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CMake
LoadStaticSharedTargets
Commits
d8cd9661
Unverified
Commit
d8cd9661
authored
1 year ago
by
Tim Kaune
Browse files
Options
Downloads
Patches
Plain Diff
Use CMakePackageConfigHelpers for package config file
This makes the CMake package relocatable
parent
c7ca5c89
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
packaging/CMakeLists.txt
+2
-2
2 additions, 2 deletions
packaging/CMakeLists.txt
packaging/LoadStaticSharedTargetsConfig.cmake.in
+4
-0
4 additions, 0 deletions
packaging/LoadStaticSharedTargetsConfig.cmake.in
with
6 additions
and
2 deletions
packaging/CMakeLists.txt
+
2
−
2
View file @
d8cd9661
...
...
@@ -49,10 +49,10 @@ write_basic_package_version_file(
file
(
READ
"../cmake/HandlePolicies.cmake"
HANDLE_POLICIES_SCRIPT OFFSET 1128
)
configure_file
(
configure_
package_config_
file
(
"LoadStaticSharedTargetsConfig.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/LoadStaticSharedTargetsConfig.cmake"
@ONLY
INSTALL_DESTINATION
"
${
LoadStaticSharedTargets_INSTALL_CMAKEDIR
}
"
)
install
(
...
...
This diff is collapsed.
Click to expand it.
packaging/LoadStaticSharedTargetsConfig.cmake.in
+
4
−
0
View file @
d8cd9661
...
...
@@ -23,6 +23,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
]]
@PACKAGE_INIT@
cmake_minimum_required(VERSION @CMAKE_MINIMUM_REQUIRED_VERSION@)
set(CMAKE_MAXIMUM_SUPPORTED_VERSION @CMAKE_MAXIMUM_SUPPORTED_VERSION@)
...
...
@@ -33,3 +35,5 @@ set(CMAKE_MAXIMUM_SUPPORTED_VERSION @CMAKE_MAXIMUM_SUPPORTED_VERSION@)
# include(LoadStaticSharedTargets) should work after this
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
check_required_components(LoadStaticSharedTargets)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment