9df63a6533
- added cmake-fixes.patch: - allow older cmake versions again to allow building on distros older than TW - install cmake modules into the proper path - update to 2.4.1 https://discuss.pixls.us/t/release-of-gmic-2-4-0/8093 https://discuss.pixls.us/t/on-the-road-to-2-5-0/9413 OBS-URL: https://build.opensuse.org/request/show/646975 OBS-URL: https://build.opensuse.org/package/show/graphics/gmic?expand=0&rev=14
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
Index: gmic-2.4.1/CMakeLists.txt
|
|
===================================================================
|
|
--- gmic-2.4.1.orig/CMakeLists.txt
|
|
+++ gmic-2.4.1/CMakeLists.txt
|
|
@@ -53,7 +53,7 @@
|
|
# knowledge of the CeCILL and CeCILL-C licenses and that you accept its terms.
|
|
#
|
|
|
|
-cmake_minimum_required(VERSION 3.12)
|
|
+cmake_minimum_required(VERSION 3.5)
|
|
cmake_policy(SET CMP0046 OLD)
|
|
|
|
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
|
|
@@ -380,8 +380,8 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/
|
|
configure_package_config_file(
|
|
${CMAKE_CURRENT_BINARY_DIR}/GmicConfig.cmake.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/GmicConfig.cmake
|
|
- INSTALL_DESTINATION lib/cmake/gmic
|
|
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/gmic
|
|
)
|
|
-install(EXPORT GmicTargets DESTINATION lib/cmake/gmic)
|
|
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/GmicConfig.cmake DESTINATION lib/cmake/gmic)
|
|
+install(EXPORT GmicTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/gmic)
|
|
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/GmicConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/gmic)
|
|
feature_summary(WHAT ALL)
|