[llvm] r361291 - [cmake] Don't use VERSION_GREATER_EQUAL in cmake versions prior to 3.72.
Don Hinton via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 12:25:54 PDT 2019
Author: dhinton
Date: Tue May 21 12:25:54 2019
New Revision: 361291
URL: http://llvm.org/viewvc/llvm-project?rev=361291&view=rev
Log:
[cmake] Don't use VERSION_GREATER_EQUAL in cmake versions prior to 3.72.
Modified:
llvm/trunk/cmake/config-ix.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=361291&r1=361290&r2=361291&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Tue May 21 12:25:54 2019
@@ -561,11 +561,12 @@ if(CMAKE_GENERATOR STREQUAL "Ninja")
OUTPUT_VARIABLE NINJA_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
set(NINJA_VERSION ${NINJA_VERSION} CACHE STRING "Ninja version number" FORCE)
+ message(STATUS "Ninja version: ${NINJA_VERSION}")
endif()
endif()
if(CMAKE_GENERATOR STREQUAL "Ninja" AND
- "${NINJA_VERSION}" VERSION_GREATER_EQUAL "1.9.0" AND
+ NOT "${NINJA_VERSION}" VERSION_LESS "1.9.0" AND
CMAKE_HOST_APPLE AND CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER "15.6.0")
set(LLVM_TOUCH_STATIC_LIBRARIES ON)
endif()
More information about the llvm-commits
mailing list