qhull: fix to work around a known issue of the library with intel compiler (#4648)
This commit is contained in:
parent
2bf140601b
commit
6dcbc30a2c
2 changed files with 20 additions and 0 deletions
|
@ -43,4 +43,6 @@ class Qhull(CMakePackage):
|
||||||
version('2012.1', 'd0f978c0d8dfb2e919caefa56ea2953c',
|
version('2012.1', 'd0f978c0d8dfb2e919caefa56ea2953c',
|
||||||
url="http://www.qhull.org/download/qhull-2012.1-src.tgz")
|
url="http://www.qhull.org/download/qhull-2012.1-src.tgz")
|
||||||
|
|
||||||
|
patch('qhull-unused-intel-17.02.patch', when='@2015.2')
|
||||||
|
|
||||||
depends_on('cmake@2.6:', type='build')
|
depends_on('cmake@2.6:', type='build')
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
--- a/src/libqhull_r/qhull_ra.h 2017-06-30 14:24:52.252635925 +0200
|
||||||
|
+++ b/src/libqhull_r/qhull_ra.h 2017-06-30 14:25:27.356635296 +0200
|
||||||
|
@@ -101,13 +101,8 @@
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
-#if defined(__cplusplus) && defined(__INTEL_COMPILER) && !defined(QHULL_OS_WIN)
|
||||||
|
-template <typename T>
|
||||||
|
-inline void qhullUnused(T &x) { (void)x; }
|
||||||
|
-# define QHULL_UNUSED(x) qhullUnused(x);
|
||||||
|
-#else
|
||||||
|
-# define QHULL_UNUSED(x) (void)x;
|
||||||
|
-#endif
|
||||||
|
+#define QHULL_UNUSED(x) (void)x;
|
||||||
|
+
|
||||||
|
|
||||||
|
/***** -libqhull_r.c prototypes (alphabetical after qhull) ********************/
|
||||||
|
|
Loading…
Reference in a new issue