summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-03-13 21:47:26 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-03-13 21:56:05 +0100
commit14e1954859d30995b3fc536e26e60b86b7f7ec99 (patch)
treedf10dc46205a515fdf932ffb1bcbe1adc9c301e5
parent5fd182ee5067585b0e1cda8d83998f7a6ef357d8 (diff)
Fix CMake version test in setup.cmake
Note: CMake operator 'VERSION_GREATER_EQUAL' was added in CMake 3.7 but we allow 3.2.3
-rw-r--r--CMake/setup.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMake/setup.cmake b/CMake/setup.cmake
index e2fd7929f..8ac22fbbb 100644
--- a/CMake/setup.cmake
+++ b/CMake/setup.cmake
@@ -1,8 +1,8 @@
#
# CMakeLists.txt to build the FLTK project using CMake (www.cmake.org)
-# Written by Michael Surette
+# Originally written by Michael Surette
#
-# Copyright 1998-2020 by Bill Spitzak and others.
+# Copyright 1998-2022 by Bill Spitzak and others.
#
# This library is free software. Distribution and use rights are outlined in
# the file "COPYING" which should have been included with this file. If this
@@ -69,9 +69,9 @@ include(TestBigEndian)
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
if (CMAKE_GENERATOR MATCHES "Xcode")
- if (${XCODE_VERSION} VERSION_GREATER_EQUAL 3.9) # CMake 3.9 and up
+ if (NOT (CMAKE_VERSION VERSION_LESS 3.9)) # CMake 3.9 and up
# Tell Xcode to regenerate scheme information automatically whenever the
- # CMake configuartion changes without asking the user
+ # CMake configuration changes without asking the user
set (CMAKE_XCODE_GENERATE_SCHEME 1)
endif()
endif()