Skip to content

Commit 1cfd46f

Browse files
aganeatstellar
authored andcommitted
[openmp] On Windows, fix standalone cmake build (llvm#80174)
This fixes: llvm#80117 (cherry picked from commit d2565bb)
1 parent 3eaa7f3 commit 1cfd46f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

openmp/cmake/HandleOpenMPOptions.cmake

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ if (NOT COMMAND append_if)
99
endfunction()
1010
endif()
1111

12+
if (NOT COMMAND append)
13+
function(append value)
14+
foreach(variable ${ARGN})
15+
set(${variable} "${${variable}} ${value}" PARENT_SCOPE)
16+
endforeach(variable)
17+
endfunction()
18+
endif()
19+
1220
# MSVC and clang-cl in compatibility mode map -Wall to -Weverything.
1321
# TODO: LLVM adds /W4 instead, check if that works for the OpenMP runtimes.
1422
if (NOT MSVC)

0 commit comments

Comments
 (0)