[Openmp-commits] [openmp] d2565bb - [openmp] On Windows, fix standalone cmake build (#80174)

via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 1 05:14:09 PST 2024


Author: Alexandre Ganea
Date: 2024-02-01T08:14:05-05:00
New Revision: d2565bb11308f6cf98d838e828d9bcbe2d51e0e4

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

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

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

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 Openmp-commits mailing list