CMake: fix CMake version check on windows (#240)

CMake was telling that my version 3.10.1 is lesser thar 3.4
This commit is contained in:
Петр Шургалин 2017-12-20 20:32:36 +03:00 committed by Kjell Hedström
parent 0ddfd6dccc
commit a2ed65600b

View File

@ -108,7 +108,7 @@ ENDIF()
IF( G3_SHARED_LIB )
IF( WIN32 )
IF(NOT(CMAKE_VERSION LESS 3.4))
IF(NOT(${CMAKE_VERSION} VERSION_LESS "3.4"))
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
ELSE()
message( FATAL_ERROR "Need CMake version >=3.4 to build shared windows library!" )