Commit 276cc39a authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Show warning instead of hard error if alberta was not found

parent 80025775
......@@ -105,7 +105,7 @@ function(add_amdis_executable)
# add flags for AlbertaGrid
if(ADDEXE_ALBERTA_GRID)
if (NOT ALBERTA_FOUND)
message(FATAL_ERROR "Alberta package required in order to set ALBERTA_GRID flag.")
message(WARNING "Alberta package required in order to set ALBERTA_GRID flag.")
endif ()
if(NOT ADDEXE_DIM)
message(FATAL_ERROR "You need to specify dimension DIM for ALBERTA_GRID!")
......@@ -120,7 +120,7 @@ function(add_amdis_executable)
# add flags for ALUGrid
if(ADDEXE_ALU_GRID)
if (NOT dune-alugrid_FOUND)
message(FATAL_ERROR "dune-alugrid package required in order to set ALU_GRID flag.")
message(WARNING "dune-alugrid package required in order to set ALU_GRID flag.")
endif ()
endif(ADDEXE_ALU_GRID)
endfunction(add_amdis_executable)
\ No newline at end of file
endfunction(add_amdis_executable)
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