[clfft] 02/06: add upstream patch adding missing cmake config module
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jun 4 14:18:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository clfft.
commit 32bd8676c0a04bc95b545edaf24988a8fc1c52de
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Thu Jun 4 14:03:01 2015 +0100
add upstream patch adding missing cmake config module
---
debian/patches/0001-fix-cmake-config-install.patch | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/debian/patches/0001-fix-cmake-config-install.patch b/debian/patches/0001-fix-cmake-config-install.patch
new file mode 100644
index 0000000..9c856f7
--- /dev/null
+++ b/debian/patches/0001-fix-cmake-config-install.patch
@@ -0,0 +1,28 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -283,6 +283,25 @@
+ message( "GoogleTest unit tests will NOT be built" )
+ endif( )
+
++if(WIN32)
++ set(destdir CMake)
++else()
++ set(destdir share/clFFT)
++endif()
++string(REGEX REPLACE "[^/]+" ".." reldir "${destdir}")
++configure_file(
++ ${CMAKE_CURRENT_SOURCE_DIR}/clFFTConfigVersion.cmake.in
++ ${CMAKE_CURRENT_BINARY_DIR}/clFFTConfigVersion.cmake
++ @ONLY)
++configure_file(
++ ${CMAKE_CURRENT_SOURCE_DIR}/clFFTConfig.cmake.in
++ ${CMAKE_CURRENT_BINARY_DIR}/clFFTConfig.cmake
++ @ONLY)
++install(EXPORT Library DESTINATION ${destdir} FILE clFFTTargets.cmake)
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/clFFTConfigVersion.cmake
++ ${CMAKE_CURRENT_BINARY_DIR}/clFFTConfig.cmake
++ DESTINATION ${destdir})
++
+ # The following code is setting variables to control the behavior of CPack to generate our
+ if( WIN32 )
+ set( CPACK_SOURCE_GENERATOR "ZIP" )
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git
More information about the debian-science-commits
mailing list