mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user