Use GCC flags in mingw

This commit is contained in:
Michael Abrahams 2015-06-20 18:54:41 +00:00
parent 84aaef93ba
commit 7043083be4

View File

@ -367,7 +367,7 @@ macro(ei_get_compilerver VAR)
# 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 CYGWIN AND NOT MINGW)
set(EIGEN_CXX_FLAG_VERSION "/version")
else()
set(EIGEN_CXX_FLAG_VERSION "--version")