Skip to content

Commit

Permalink
[openmp] On Windows, fix standalone cmake build (llvm#80174)
Browse files Browse the repository at this point in the history
This fixes: llvm#80117

(cherry picked from commit d2565bb)
  • Loading branch information
aganea authored and tstellar committed Feb 2, 2024
1 parent 3eaa7f3 commit 1cfd46f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openmp/cmake/HandleOpenMPOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1cfd46f

Please sign in to comment.