Skip to content

Commit 5d67ce4

Browse files
committed
[openmp] On Windows, fix standalone cmake build
This fixes: #80117
1 parent 151559c commit 5d67ce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/cmake/HandleOpenMPOptions.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ append_if(OPENMP_HAVE_DATA_SECTIONS "-fdata-sections" CMAKE_C_FLAGS CMAKE_CXX_FL
4444

4545
if (MSVC)
4646
# Disable "warning C4201: nonstandard extension used: nameless struct/union"
47-
append("-wd4201" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
47+
append_if(TRUE "-wd4201" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
4848

4949
# Disable "warning C4190: '__kmpc_atomic_cmplx8_rd' has C-linkage specified, but returns
5050
# UDT '__kmp_cmplx64_t' which is incompatible with C"
51-
append("-wd4190" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
51+
append_if(TRUE "-wd4190" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
5252
endif()

0 commit comments

Comments
 (0)