Fail if Damaris is requested and not found

In the current setup, `USE_DAMARIS_LIB` is set to `OFF` by default, but setting it to `ON` does not issue an error if Damaris is not found. This issues an error if `USE_DAMARIS_LIB==ON` and Damaris is not found.
This commit is contained in:
Kjetil Olsen Lye 2023-11-10 11:59:08 +01:00 committed by GitHub
parent b640b53d36
commit df80891256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ if(USE_DAMARIS_LIB AND MPI_FOUND)
message(STATUS "The Damaris library does NOT have Catalyst support")
endif()
else()
message(STATUS "The Damaris library was requested but NOT found")
message(FATAL_ERROR "The Damaris library was requested but NOT found")
endif()
else() # User did not request Damaris support
unset(HAVE_DAMARIS)