mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 13:59:01 +08:00
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
diff --git a/CMake/VTKmDeviceAdapters.cmake b/CMake/VTKmDeviceAdapters.cmake
|
|
index e9ac039..c745604 100644
|
|
--- a/CMake/VTKmDeviceAdapters.cmake
|
|
+++ b/CMake/VTKmDeviceAdapters.cmake
|
|
@@ -59,20 +59,14 @@ if(VTKm_ENABLE_OPENMP AND NOT TARGET vtkm::openmp)
|
|
find_package(OpenMP 4.0 REQUIRED COMPONENTS CXX QUIET)
|
|
|
|
add_library(vtkm::openmp INTERFACE IMPORTED GLOBAL)
|
|
+ target_link_libraries(vtkm::openmp INTERFACE OpenMP::OpenMP_CXX)
|
|
if(OpenMP_CXX_FLAGS)
|
|
- set_property(TARGET vtkm::openmp
|
|
- APPEND PROPERTY INTERFACE_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:CXX>:${OpenMP_CXX_FLAGS}>)
|
|
-
|
|
if(VTKm_ENABLE_CUDA)
|
|
string(REPLACE ";" "," openmp_cuda_flags "-Xcompiler=${OpenMP_CXX_FLAGS}")
|
|
set_property(TARGET vtkm::openmp
|
|
APPEND PROPERTY INTERFACE_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:CUDA>:${openmp_cuda_flags}>)
|
|
endif()
|
|
endif()
|
|
- if(OpenMP_CXX_LIBRARIES)
|
|
- set_target_properties(vtkm::openmp PROPERTIES
|
|
- INTERFACE_LINK_LIBRARIES "${OpenMP_CXX_LIBRARIES}")
|
|
- endif()
|
|
endif()
|
|
|
|
if(VTKm_ENABLE_CUDA)
|