From b73c6462d67b0fe26d28ef0549ab76b709879b18 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Tue, 31 Dec 2013 15:49:19 +0100 Subject: [PATCH] simplify XCODE_VERSION check --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 755ebcffe1..023c3e14b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -706,7 +706,7 @@ endif() # Xcode compiler if (CMAKE_GENERATOR MATCHES Xcode) - if (NOT XCODE_VERSION VERSION_GREATER "5.0") + if (XCODE_VERSION VERSION_LESS "5.0") # Automatically select the Xcode compiler if not set if (NOT DEFINED CMAKE_XCODE_ATTRIBUTE_GCC_VERSION) # XCode >= 3.1 has gcc 4.2 (up to actual Xcode) @@ -716,7 +716,7 @@ if (CMAKE_GENERATOR MATCHES Xcode) ENDIF(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_GCC_VERSION) # Print the selected compiler version MESSAGE(STATUS "---- Using XCode compiler CMAKE_XCODE_ATTRIBUTE_GCC_VERSION=${CMAKE_XCODE_ATTRIBUTE_GCC_VERSION}") - ENDIF(NOT XCODE_VERSION VERSION_GREATER "5.0") + ENDIF(XCODE_VERSION VERSION_LESS "5.0") ENDIF(CMAKE_GENERATOR MATCHES Xcode) if (WIN32 AND Qt5Core_FOUND)