File: UseDamaris.cmake

package info (click to toggle)
opm-common 2022.10%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,468 kB
  • sloc: cpp: 164,554; python: 2,872; sh: 216; xml: 174; ansic: 149; pascal: 136; makefile: 12
file content (27 lines) | stat: -rw-r--r-- 999 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
if(USE_DAMARIS_LIB AND MPI_FOUND)
  if (Damaris_FOUND)
    set(HAVE_DAMARIS 1)
    message(STATUS "The Damaris library was found: ${Damaris_VERSION} ${Damaris_DIR}")
    if (Damaris_HAS_HDF5)
      message(STATUS "The Damaris library has HDF5 support: ${HDF5_VERSION}")
    else()
      message(STATUS "The Damaris library does NOT have HDF5 support")
    endif()
    if (Damaris_HAS_VISIT)
      message(STATUS "The Damaris library has VisIt support: ${VisIt_VERSION}")
    else()
      message(STATUS "The Damaris library does NOT have VisIt support")
    endif()
    if (Damaris_HAS_CATALYST)
      message(STATUS "The Damaris library has Catalyst support: ${Catalyst_VERSION}  ${Paraview_VERSION}")
    else()
      message(STATUS "The Damaris library does NOT have Catalyst support")
    endif()
  else()
    message(STATUS "The Damaris library was requested but NOT found")
  endif()
else()  # User did not request Damaris support
  unset(HAVE_DAMARIS)
endif()

mark_as_advanced(HAVE_DAMARIS)