You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/eigen-2-fix-compiler-versio...

14 lines
483 B

This file is part of MXE. See LICENSE.md for licensing 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")