[lua-torch-torch7] 07/11: patch: add fix-cmake-checkfunctionexists
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Sat Sep 10 04:47:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository lua-torch-torch7.
commit 9be661e68c6d174c14b80a005fa5a636a065e483
Author: Zhou Mo <cdluminate at gmail.com>
Date: Sat Sep 10 04:26:43 2016 +0000
patch: add fix-cmake-checkfunctionexists
---
debian/changelog | 1 +
debian/patches/fix-cmake-checkfunctionexists | 18 ++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 20 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d9438ea..54e8e9c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ lua-torch-torch7 (0~20160908-ge5ebac6-1) UNRELEASED; urgency=medium
- TH-cmake-add-version
- luaT-cmake-add-version
* Use elegant dh_auto_configure instead of hardcoded commands.
+ * Add patch fix-cmake-checkfunctionexists to fix cmake failure.
-- Zhou Mo <cdluminate at gmail.com> Sat, 10 Sep 2016 03:25:56 +0000
diff --git a/debian/patches/fix-cmake-checkfunctionexists b/debian/patches/fix-cmake-checkfunctionexists
new file mode 100644
index 0000000..341b364
--- /dev/null
+++ b/debian/patches/fix-cmake-checkfunctionexists
@@ -0,0 +1,18 @@
+Forwarded: https://github.com/torch/torch7/pull/761
+
+diff --git a/lib/TH/CMakeLists.txt b/lib/TH/CMakeLists.txt
+index e1610af..bc287c1 100644
+--- a/lib/TH/CMakeLists.txt
++++ b/lib/TH/CMakeLists.txt
+@@ -26,6 +26,11 @@ IF(MSVC)
+ ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE=1)
+ ENDIF(MSVC)
+
++IF(UNIX)
++ # prevent Unknown CMake command "check_function_exists".
++ INCLUDE(CheckFunctionExists)
++ENDIF(UNIX)
++
+ # OpenMP support?
+ SET(WITH_OPENMP ON CACHE BOOL "OpenMP support if available?")
+ IF (APPLE AND CMAKE_COMPILER_IS_GNUCC)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6caf852
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-cmake-checkfunctionexists
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-torch7.git
More information about the debian-science-commits
mailing list