Commit 7299d1ab authored by GILLES Sebastien's avatar GILLES Sebastien

#1220 CMake: add an error message if no cache file was provided.

parent a32f4c09
......@@ -5,12 +5,10 @@ cmake_minimum_required(VERSION 3.8)
# ===================================================================================================================
# Include a file with default setting. Some of them might be overriden by command line, such as the C or C++ compiler.
# ===================================================================================================================
# if(NOT SETTINGS_FILE)
# message(FATAL_ERROR "-DSETTINGS_FILE must be present in the command line and point to a file that specify the paths and settings to use in the build. Examples are given in cmake/Settings folder; feel free to copy and adapt them to your needs.")
# endif()
#
# include(${SETTINGS_FILE})
if (NOT PETSC_GENERAL_INCL_DIR)
message(FATAL_ERROR "PETSC_GENERAL_INCL_DIR was not found; the recommended way to build MoReFEM is to provide a setting file that provide many cache values with -C, e.g. cmake -C ../cmake/Settings/clang_shared_lib.cmake.")
endif()
if(MOREFEM_CHECK_UPDATE_GHOSTS_CALL_RELEVANCE)
message("ADDING FLAG MOREFEM_CHECK_UPDATE_GHOSTS_CALL_RELEVANCE")
......
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