From df808912561fbf73ccce351f138e4329df5487b9 Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Fri, 10 Nov 2023 11:59:08 +0100 Subject: [PATCH] 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. --- cmake/Modules/UseDamaris.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/UseDamaris.cmake b/cmake/Modules/UseDamaris.cmake index 44e71e2d4..8c2c1115d 100644 --- a/cmake/Modules/UseDamaris.cmake +++ b/cmake/Modules/UseDamaris.cmake @@ -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)