Commit 6aeb5f25 authored by Cory Quammen's avatar Cory Quammen
Browse files

zfp: package OpenMP runtime libraries if needed

Define and add CMAKE_INSTALL_OPENMP_LIBRARIES to
superbuild_export_variables for zfp.
parent 02ca6bd5
......@@ -261,6 +261,17 @@ function (superbuild_add_packaging)
PARAVIEWSDK_PACKAGE_FILE_NAME)
endif ()
if (zfp_enabled)
# ZFP will look for OpenMP and enable it if OPENMP_FOUND is set to
# true. Do the same here and export a variable to the packaging step
# if it is found.
find_package(OpenMP COMPONENTS C)
if (OPENMP_FOUND)
set(CMAKE_INSTALL_OPENMP_LIBRARIES 1 CACHE BOOL "Install OpenMP runtime libraries")
list(APPEND superbuild_export_variables CMAKE_INSTALL_OPENMP_LIBRARIES)
endif()
endif()
set(paraview_PLUGINS_AUTOLOAD ""
CACHE STRING "List of plugins to autoload")
foreach (paraview_plugin IN LISTS paraview_PLUGINS_AUTOLOAD)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment