[llvm-branch-commits] [openmp] 1cfd46f - [openmp] On Windows, fix standalone cmake build (#80174)

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 1 17:55:36 PST 2024


Author: Alexandre Ganea
Date: 2024-02-01T17:54:51-08:00
New Revision: 1cfd46f1343c8dcd866d29ce28ac0a4a71bd7968

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

LOG: [openmp] On Windows, fix standalone cmake build (#80174)

This fixes: https://github.com/llvm/llvm-project/issues/80117

(cherry picked from commit d2565bb11308f6cf98d838e828d9bcbe2d51e0e4)

Added: 
    

Modified: 
    openmp/cmake/HandleOpenMPOptions.cmake

Removed: 
    


################################################################################
diff  --git a/openmp/cmake/HandleOpenMPOptions.cmake b/openmp/cmake/HandleOpenMPOptions.cmake
index 201aeabbd3df9..71346201129b6 100644
--- a/openmp/cmake/HandleOpenMPOptions.cmake
+++ b/openmp/cmake/HandleOpenMPOptions.cmake
@@ -9,6 +9,14 @@ if (NOT COMMAND append_if)
   endfunction()
 endif()
 
+if (NOT COMMAND append)
+  function(append value)
+    foreach(variable ${ARGN})
+      set(${variable} "${${variable}} ${value}" PARENT_SCOPE)
+    endforeach(variable)
+  endfunction()
+endif()
+
 # MSVC and clang-cl in compatibility mode map -Wall to -Weverything.
 # TODO: LLVM adds /W4 instead, check if that works for the OpenMP runtimes.
 if (NOT MSVC)


        


More information about the llvm-branch-commits mailing list