[llvm] [orc-rt] updating to latest min cmake version (PR #216469)
Jared Wyles via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 15 01:47:22 PDT 2026
https://github.com/jaredwy created https://github.com/llvm/llvm-project/pull/216469
add github url to explain TODO about using variables if we decide we want to.
>From f8509d5a85f9bd98d5bc90b4a234c7d82d41694d Mon Sep 17 00:00:00 2001
From: Jared Wyles <jared.wyles at gmail.com>
Date: Sat, 15 Aug 2026 18:29:28 +1000
Subject: [PATCH] [orc-rt] updating to latest min cmake version
add github url to explain TODO about using variables
---
orc-rt/CMakeLists.txt | 10 +---------
orc-rt/lib/executor/CMakeLists.txt | 1 +
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/orc-rt/CMakeLists.txt b/orc-rt/CMakeLists.txt
index 529b5c292889b..9660d6e6e68ee 100644
--- a/orc-rt/CMakeLists.txt
+++ b/orc-rt/CMakeLists.txt
@@ -3,15 +3,7 @@
#===============================================================================
# Setup Project
#===============================================================================
-
-cmake_minimum_required(VERSION 3.20.0)
-if("${CMAKE_VERSION}" VERSION_LESS "3.31.0")
- message(WARNING
- "Your CMake version is ${CMAKE_VERSION}. Starting with LLVM 24, the "
- "minimum version of CMake required to build LLVM will become 3.31.0, and "
- "using an older CMake will become an error. Please upgrade your CMake to "
- "at least 3.31.0 now to avoid issues in the future.")
-endif()
+cmake_minimum_required(VERSION 3.31.0)
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
diff --git a/orc-rt/lib/executor/CMakeLists.txt b/orc-rt/lib/executor/CMakeLists.txt
index b5c49c989a2e4..5d543270a022b 100644
--- a/orc-rt/lib/executor/CMakeLists.txt
+++ b/orc-rt/lib/executor/CMakeLists.txt
@@ -74,6 +74,7 @@ target_include_directories(orc-rt-executor-impl-headers INTERFACE
# Apply RTTI and exceptions compile flags
target_compile_options(orc-rt-executor PRIVATE ${ORC_RT_COMPILE_FLAGS})
# TODO: Use common runtimes infrastructure for output and install paths
+# https://github.com/llvm/llvm-project/commit/afb80bddf147c134c5e3cf3f357f8d00bdfd526c
install(TARGETS orc-rt-executor
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT OrcRT_Development
More information about the llvm-commits
mailing list