From 69d0a68f0d7ed82b9701c5a7832f609e4ea4fd75 Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Sun, 22 Apr 2012 11:23:17 +0000 Subject: [PATCH] OSX/cmake: LESS must be VERSION_LESS for XCODE_VERSION --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2669f2ff93f..003176e7b96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1137,7 +1137,7 @@ elseif(APPLE) set(WITH_LIBS10.5 ON CACHE BOOL "Use 10.5 libs" FORCE) # valid also for 10.6/10.7 endif() - if(${XCODE_VERSION} LESS 4.3) + if(${XCODE_VERSION} VERSION_LESS 4.3) SET(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX${OSX_SYSTEM}.sdk CACHE PATH "" FORCE ) # use guaranteed existing sdk else() # note: i don't use xcode-select path on purpose, cause also /Applications/Xcode.app would be allowed