We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 593deff commit e5482a5Copy full SHA for e5482a5
CMakeLists.txt
@@ -71,6 +71,7 @@ set(PROJECT_APP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/apps)
71
set(PROJECT_BINDINGS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bindings)
72
73
add_subdirectory(src)
74
+link_openmp()
75
add_subdirectory(examples)
76
77
add_subdirectory(apps)
cmake/load_openmp.cmake
@@ -8,3 +8,9 @@ else ()
8
message(STATUS "Did not find OpenMP")
9
set(VT_TV_OPENMP_ENABLED OFF)
10
endif()
11
+
12
+function(link_openmp)
13
+ if(VT_TV_OPENMP_ENABLED)
14
+ target_link_libraries(${VT_TV_LIBRARY} PUBLIC OpenMP::OpenMP_CXX)
15
+ endif()
16
+endfunction()
0 commit comments