summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCXXCompiler.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-09-15 14:32:28 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-09-15 14:32:28 (GMT)
commit2e4264e0d1999dd67227c2737fbdc6083112e89e (patch)
tree342c2b33d2bb559176129b153ca35e36dc6d3a9e /Modules/CMakeDetermineCXXCompiler.cmake
parent1ebc0709f1eceff56f81ccbb67d9acec15b79398 (diff)
downloadCMake-2e4264e0d1999dd67227c2737fbdc6083112e89e.zip
CMake-2e4264e0d1999dd67227c2737fbdc6083112e89e.tar.gz
CMake-2e4264e0d1999dd67227c2737fbdc6083112e89e.tar.bz2
ENH: do not check for gnu for visual studio
Diffstat (limited to 'Modules/CMakeDetermineCXXCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCXXCompiler.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCXXCompiler.cmake b/Modules/CMakeDetermineCXXCompiler.cmake
index 3718f5f..4658229 100644
--- a/Modules/CMakeDetermineCXXCompiler.cmake
+++ b/Modules/CMakeDetermineCXXCompiler.cmake
@@ -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)