From defdc076b6030e724ac4c8b52142b97950fa1648 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Thu, 23 Mar 2023 09:18:23 -0300 Subject: [PATCH] [Flang] Fix CMakePolicy.cmake Let LLVM_COMMON_CMAKE_UTILS store the directory where cmake modules are available and stop assuming its directory structure. --- flang/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt index 03bbfd9b8ec0..62f69f52b2e5 100644 --- a/flang/CMakeLists.txt +++ b/flang/CMakeLists.txt @@ -1,9 +1,9 @@ cmake_minimum_required(VERSION 3.13.4) if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS) - set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) + set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake/Modules) endif() -include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake +include(${LLVM_COMMON_CMAKE_UTILS}/CMakePolicy.cmake NO_POLICY_SCOPE) set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON) -- 2.39.2