Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belr
Commits
fc884829
Commit
fc884829
authored
Oct 07, 2019
by
Simon Morlat
Browse files
Install cmake config files into the correct path.
parent
0b5842ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
fc884829
...
...
@@ -128,7 +128,7 @@ endif()
include
(
CMakePackageConfigHelpers
)
set
(
EXPORT_TARGET_NAME belr
)
set
(
ConfigPackageLocation
shar
e/
${
EXPORT_TARGET_NAME
}
/cmake
)
set
(
ConfigPackageLocation
"
${
CMAKE_INSTALL_LIBDIR
}
/cmak
e/
${
EXPORT_TARGET_NAME
}
"
)
export
(
EXPORT
${
EXPORT_TARGET_NAME
}
Targets
FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
EXPORT_TARGET_NAME
}
Targets.cmake"
...
...
@@ -144,6 +144,8 @@ install(EXPORT ${EXPORT_TARGET_NAME}Targets
FILE
${
EXPORT_TARGET_NAME
}
Targets.cmake
DESTINATION
${
ConfigPackageLocation
}
)
#Yes, an install directive is necessary. The INSTALL_DESTINATION parameter of configure_package_config_file() above does NOTHING.
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
EXPORT_TARGET_NAME
}
Config.cmake"
DESTINATION
${
ConfigPackageLocation
}
...
...
build/rpm/belr.spec.cmake
View file @
fc884829
...
...
@@ -98,8 +98,8 @@ rm -rf $RPM_BUILD_ROOT
%if @ENABLE_SHARED@
%{_libdir}/libbelr.so
%endif
%{_
data
dir}/
belr/
cmake/belrConfig*.cmake
%{_
data
dir}/
belr/
cmake/belrTargets*.cmake
%{_
lib
dir}/cmake
/belr
/belrConfig*.cmake
%{_
lib
dir}/cmake
/belr
/belrTargets*.cmake
%if @ENABLE_TESTS@ || @ENABLE_TOOLS@
%{_bindir}/*
%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