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
This commit is contained in:
k-brac 2019-01-15 01:43:17 +01:00 committed by Anna Gringauze
parent 0f68d133fa
commit be3c3c2731

View File

@ -67,7 +67,7 @@ else()
endif() 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) if (MSVC_IDE)
option(VS_ADD_NATIVE_VISUALIZERS "Configure project to use Visual Studio native visualizers" TRUE) option(VS_ADD_NATIVE_VISUALIZERS "Configure project to use Visual Studio native visualizers" TRUE)
else() else()