Commit fcf928f2 authored by Ben Boeckel's avatar Ben Boeckel

smtk: netcdf/hdf5 via moab

ParaView depends on netcdf optionally, but if it is enabled, netcdfcpp
also needs enabled. Given this initial setup:

  - ENABLE_smtk=ON

netcdf is enabled implicitly in the first pass to build the graph.
ParaView doesn't know this (smtk is processed after paraview), so it
cannot add the dependency. On the second pass, it sees that netcdf is
enabled and requests netcdfcpp, but it was pruned from the graph since
it didn't appear the first time and therefore errors out.

To fix this, make smtk depend on netcdf/hdf5 via moab. But also depend
optionally so that smtk can know about it if the superbuild has them
enabled.
parent 067bb859
......@@ -11,7 +11,7 @@ endif()
# set(cgm_find_flags "-DCGM_CFG:PATH=${SuperBuild_BINARY_DIR}/cgm/src/cgm/cgm.make")
#endif()
add_external_project(moab
DEPENDS hdf5 netcdfcpp
DEPENDS hdf5 netcdf netcdfcpp
# DEPENDS_OPTIONAL cgm
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=OFF
......
......@@ -22,8 +22,7 @@ set(SMTK_DATA_DIR "" CACHE PATH "Location of SMTK's testing data")
add_external_project_or_just_build_dependencies(smtk
DEPENDS boost qt shiboken paraview remus
hdf5 netcdf
DEPENDS_OPTIONAL moab
DEPENDS_OPTIONAL moab netcdf netcdfcpp hdf5
CMAKE_ARGS
${extra_cmake_args}
"-C${CMAKE_BINARY_DIR}/env.cmake"
......
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