[Openmp-commits] [openmp] [AIX][OpenMP] Include the cmake policy file (PR #186031)

Kelvin Li via Openmp-commits openmp-commits at lists.llvm.org
Wed Mar 11 20:54:15 PDT 2026


https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/186031

This patch is to enforce building shared library archive by default on AIX as described in https://cmake.org/cmake/help/latest/policy/CMP0182.html.

>From 004d8e7ceb4adccf8ac4456b4fcf2ef8ff552fe1 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Wed, 11 Mar 2026 23:41:19 -0400
Subject: [PATCH] [AIX][OpenMP] Include the cmake policy file

---
 openmp/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt
index 94152f98d30f6..7c0d3b222ddc0 100644
--- a/openmp/CMakeLists.txt
+++ b/openmp/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20.0)
 set(LLVM_SUBPROJECT_TITLE "OpenMP")
 
 set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
+include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
+  NO_POLICY_SCOPE)
 
 # Add path for custom modules
 list(INSERT CMAKE_MODULE_PATH 0



More information about the Openmp-commits mailing list