summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-30 20:08:16 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-30 20:18:05 (GMT)
commit16fa7b73958ca52bebd0d3a2dd6374bd391ed64d (patch)
tree70ab83ecaf5643077c38c68edcd19c6e1c8f678f /Modules
parent32b7c72623a52331e2a965c3b1569143606afffc (diff)
downloadCMake-16fa7b73958ca52bebd0d3a2dd6374bd391ed64d.zip
CMake-16fa7b73958ca52bebd0d3a2dd6374bd391ed64d.tar.gz
CMake-16fa7b73958ca52bebd0d3a2dd6374bd391ed64d.tar.bz2
VS: Fix MSVC_IDE definition recently broken by refactoring
In commit 485a940e (VS: Simplify MSVC version reporting, 2012-08-23) we accidentally flipped the 0/1 values of MSVC_IDE. Flip them back and teach the CheckCompilerRelatedVariables test to check the variable.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Windows-MSVC.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake
index b3cb19b..238aa24 100644
--- a/Modules/Platform/Windows-MSVC.cmake
+++ b/Modules/Platform/Windows-MSVC.cmake
@@ -56,9 +56,9 @@ enable_language(RC)
set(CMAKE_COMPILE_RESOURCE "rc <FLAGS> /fo<OBJECT> <SOURCE>")
if("${CMAKE_GENERATOR}" MATCHES "Visual Studio")
- set(MSVC_IDE 0)
-else()
set(MSVC_IDE 1)
+else()
+ set(MSVC_IDE 0)
endif()
if(NOT MSVC_VERSION)