Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork-brac <baptiste.h.aubry@gmail.com>2019-01-15 03:43:17 +0300
committerAnna Gringauze <annagrin@microsoft.com>2019-01-15 03:43:17 +0300
commitbe3c3c27319e95b6c60abbe40f80cb96a695abc1 (patch)
treefedcaeda8238fdfe9c1fc4270b9552b2a76f1972 /CMakeLists.txt
parent0f68d133fa6fd2973951b8aaab481e34bbfd2cf4 (diff)
Fixes CMAKE_VERSION check (#759)
* Fixes CMAKE_VERSION check Fixes #758 by using the correct comparison operator for a version See documentation at https://cmake.org/cmake/help/latest/command/if.html Thanks to this change, gsl natvis is properly included in a visual studio solution * cmake version check for cmake < 3.7
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71011b1..0348f79 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,7 +67,7 @@ else()
endif()
-if ((CMAKE_VERSION GREATER 3.7.9) OR (CMAKE_VERSION EQUAL 3.7.9))
+if (CMAKE_VERSION VERSION_GREATER 3.7.8)
if (MSVC_IDE)
option(VS_ADD_NATIVE_VISUALIZERS "Configure project to use Visual Studio native visualizers" TRUE)
else()