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
  • Loading branch information
aganea authored and agozillon committed Feb 5, 2024
1 parent 3081e5b commit d6dbf02
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 d6dbf02

Please sign in to comment.