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 Feb 1, 2024
1 parent 178719e commit d2565bb
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 d2565bb

Please sign in to comment.