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:
parent
b640b53d36
commit
df80891256
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user