[Openmp-commits] [openmp] ca00718 - [OpenMP] Fix missing CMake function in runtimes build

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Mon Nov 27 07:23:22 PST 2023


Author: Joseph Huber
Date: 2023-11-27T09:23:15-06:00
New Revision: ca007181eadf9bce357e382400cfddb5b925c142

URL: https://github.com/llvm/llvm-project/commit/ca007181eadf9bce357e382400cfddb5b925c142
DIFF: https://github.com/llvm/llvm-project/commit/ca007181eadf9bce357e382400cfddb5b925c142.diff

LOG: [OpenMP] Fix missing CMake function in runtimes build

Summary:
We borrowed this function from LLVM, my previous patch removed that. Now
we redefine it if it's not present.

Added: 
    

Modified: 
    openmp/cmake/HandleOpenMPOptions.cmake

Removed: 
    


################################################################################
diff  --git a/openmp/cmake/HandleOpenMPOptions.cmake b/openmp/cmake/HandleOpenMPOptions.cmake
index 4d6782a6f0cbe87..a79b04e005756e9 100644
--- a/openmp/cmake/HandleOpenMPOptions.cmake
+++ b/openmp/cmake/HandleOpenMPOptions.cmake
@@ -1,4 +1,4 @@
-if (OPENMP_STANDALONE_BUILD)
+if (NOT COMMAND append_if)
   # From HandleLLVMOptions.cmake
   function(append_if condition value)
     if (${condition})


        


More information about the Openmp-commits mailing list