|
|
@@ -38,6 +38,11 @@ IF(NOT CMAKE_CXX_COMPILER)
|
|
|
ENDIF(NOT CMAKE_CXX_COMPILER)
|
|
|
MARK_AS_ADVANCED(CMAKE_CXX_COMPILER)
|
|
|
|
|
|
+# do not test for GNU if the generator is visual studio
|
|
|
+IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
|
|
+ SET(CMAKE_COMPILER_IS_GNUCXX_RUN 1)
|
|
|
+ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
|
|
+
|
|
|
IF(NOT CMAKE_COMPILER_IS_GNUCXX_RUN)
|
|
|
# test to see if the cxx compiler is gnu
|
|
|
SET(CMAKE_COMPILER_IS_GNUCXX_RUN 1)
|