forked from pool/blitz
- Update to 1.0.2 * added CMake build system (autotools build to be phased out in a next release) * autotools-related fixes * Python 3 compatibility in Makefiles and genstencils.py * fixing compilation issue for BZ_DECLARE_FUNCTION (SF issue no. 51) * fixing apparent typo-bug in expr.h (SF bug no. 59) * some code cleanups (namespace related macros, etc) - Remove obsolete blitz-gcc47.patch - Add fix_cmake_file_dir.patch to make sure .cmake files are placed in the correct directory. From: https://github.com/blitzpp/blitz/pull/155 OBS-URL: https://build.opensuse.org/request/show/768933 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/blitz?expand=0&rev=14
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
From 7405cefc7198d839168cda8ec58c6b337c6d5e09 Mon Sep 17 00:00:00 2001
|
|
From: Todd <toddrme2178@gmail.com>
|
|
Date: Thu, 12 Dec 2019 13:16:36 -0500
|
|
Subject: [PATCH] Fix cmake file installation directory
|
|
|
|
It was hard-coded as being installed in a platform-independent directory rather than using the variables the user defined.
|
|
---
|
|
CMakeLists.txt | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index f3150cde..621a39fe 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -70,15 +70,15 @@ write_basic_package_version_file(
|
|
configure_package_config_file(
|
|
cmake/${PROJECT_NAME}Config.cmake.in
|
|
cmake/${PROJECT_NAME}Config.cmake
|
|
- INSTALL_DESTINATION lib/cmake/)
|
|
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/)
|
|
|
|
# Installation
|
|
|
|
-install(EXPORT ${PROJECT_NAME}Targets DESTINATION lib/cmake)
|
|
+install(EXPORT ${PROJECT_NAME}Targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
|
install(FILES
|
|
${CMAKE_BINARY_DIR}/blitz.pc
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
|
install(FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake
|
|
${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake
|
|
- DESTINATION lib/cmake/)
|
|
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/)
|