diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-07-09 01:39:29 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-07-09 01:40:06 (GMT) |
commit | 6c3c520171389096b861e7f7b4a38b84df0310bd (patch) | |
tree | 23dc02924a4d031058894ec202d2e857936fec03 /src/eigen-2-fix-compiler-version.patch | |
parent | 69c3d2b28d9ef724a3b1ff3c5ddafdb0ebba4fd6 (diff) | |
download | mxe-6c3c520171389096b861e7f7b4a38b84df0310bd.zip mxe-6c3c520171389096b861e7f7b4a38b84df0310bd.tar.gz mxe-6c3c520171389096b861e7f7b4a38b84df0310bd.tar.bz2 |
Fix eigen
Diffstat (limited to 'src/eigen-2-fix-compiler-version.patch')
-rw-r--r-- | src/eigen-2-fix-compiler-version.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/eigen-2-fix-compiler-version.patch b/src/eigen-2-fix-compiler-version.patch new file mode 100644 index 0000000..ec9c781 --- /dev/null +++ b/src/eigen-2-fix-compiler-version.patch @@ -0,0 +1,14 @@ +This file is part of MXE. +See index.html for further information. + +--- a/cmake/EigenTesting.cmake ++++ b/cmake/EigenTesting.cmake +@@ -324,7 +324,7 @@ + # on all other system we rely on ${CMAKE_CXX_COMPILER} + # supporting a "--version" or "/version" flag + +- if(WIN32 AND NOT CYGWIN) ++ if(WIN32 AND NOT CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_COMPILER_IS_GNUCC) + set(EIGEN_CXX_FLAG_VERSION "/version") + else() + set(EIGEN_CXX_FLAG_VERSION "--version") |