diff options
author | k-brac <baptiste.h.aubry@gmail.com> | 2019-01-15 03:43:17 +0300 |
---|---|---|
committer | Anna Gringauze <annagrin@microsoft.com> | 2019-01-15 03:43:17 +0300 |
commit | be3c3c27319e95b6c60abbe40f80cb96a695abc1 (patch) | |
tree | fedcaeda8238fdfe9c1fc4270b9552b2a76f1972 /CMakeLists.txt | |
parent | 0f68d133fa6fd2973951b8aaab481e34bbfd2cf4 (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.txt | 2 |
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() |