Commit bf4473af authored by GILLES Sebastien's avatar GILLES Sebastien

#1217 CMake: modify the name of the macro giving away settings. Also add a...

#1217 CMake: modify the name of the macro giving away settings. Also add a prifeix in install directory so that modes are differentiated.
parent 438646ed
......@@ -7,11 +7,11 @@ 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 PATH_FILE)
message(FATAL_ERROR "-DPATH_FILE must be present in the command line and point to a file that specify the paths and settings to use in the build. A default one is defined in cmake/Paths.cmake; feel free to copy and adapt it to your needs.")
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. A default one is defined in cmake/Paths.cmake; feel free to copy and adapt it to your needs.")
endif()
include(${PATH_FILE})
include(${SETTINGS_FILE})
if(MOREFEM_CHECK_UPDATE_GHOSTS_CALL_RELEVANCE)
......@@ -47,6 +47,8 @@ options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release
RelWithDebInfo MinSizeRel.")
endif()
set(MOREFEM_INSTALL_DIR ${MOREFEM_INSTALL_DIR}/${CMAKE_BUILD_TYPE})
# Set C and CXX compilers from the values read in the setting file. Might be overridden in command line.
if (NOT DEFINED CMAKE_C_COMPILER)
......
# Installation directory for executables and libraries.
set(MOREFEM_INSTALL_DIR /Volumes/Data/sebastien/Morefem/CMake/)
# This will be completed with a subdirectory giving away the compilation mode (Debug, Release, etc...)
set(MOREFEM_INSTALL_DIR /Volumes/Data/sebastien/MoReFEM/CMake/)
# Choose C and C++ compilers. You might also specifies here clang static analyzer (paths to ccc-analyzer and c++-analyzer respectively) to perform static analysis of the code.
# Attention: those will be used only if user does not supersede them by prioviding -DCMAKE_C_COMPILER or -DCMAKE_CXX_COMPILER on command line!
......
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