Skip to content

Commit d2cf908

Browse files
authored
[openmp] - Ensure that -fopenmp is used with OpenMP::omp target (llvm#4337)
2 parents 1fb5612 + 8453d85 commit d2cf908

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openmp/runtime/openmp-config.cmake.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ set_and_check( openmp_INCLUDE_DIR "@PACKAGE_LIBOMP_HEADERS_INSTALL_PATH@" )
1111
set_and_check( openmp_INCLUDE_DIRS "${openmp_INCLUDE_DIR}" )
1212

1313
include( "${CMAKE_CURRENT_LIST_DIR}/openmpTargets.cmake" )
14+
15+
set_property(TARGET OpenMP::omp APPEND PROPERTY
16+
INTERFACE_COMPILE_OPTIONS "-fopenmp"
17+
)

0 commit comments

Comments
 (0)