Commit 4d939b3c authored by GILLES Sebastien's avatar GILLES Sebastien

#1498 Fix a CMake issue for Mac in release: debug libraries were used by default.

parent cf673bfa
set(CMAKE_INSTALL_PREFIX /placeholder_value CACHE PATH "Installation directory for executables and libraries. A MoReFEM folder will be created there when install is invoked. This value should be overridden in command line!")
set(MOREFEM_THIRD_PARTY_LIBRARIES_DIR /Volumes/Data/opt/clang_debug CACHE STRING "Path to third party directory")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose either 'Debug' or 'Release'")
if (CMAKE_BUILD_TYPE MATCHES Debug)
set(MOREFEM_THIRD_PARTY_LIBRARIES_DIR /Volumes/Data/opt/clang_debug CACHE STRING "Path to third party directory")
else()
set(MOREFEM_THIRD_PARTY_LIBRARIES_DIR /Volumes/Data/opt/clang_release CACHE STRING "Path to third party directory")
endif()
set(CMAKE_C_COMPILER ${MOREFEM_THIRD_PARTY_LIBRARIES_DIR}/Openmpi/bin/mpicc CACHE FILEPATH "C compiler. Prefer to use an openmpi wrapper.")
set(CMAKE_CXX_COMPILER ${MOREFEM_THIRD_PARTY_LIBRARIES_DIR}/Openmpi/bin/mpic++ CACHE FILEPATH "C++ compiler. Prefer to use an openmpi wrapper.")
......@@ -11,8 +17,6 @@ set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard; at least 17 is expected.")
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE STRING "Leave this one active.")
set(CMAKE_CXX_EXTENSIONS OFF CACHE STRING "If ON you might be using gnu++17; with OFF you'll use c++17.")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose either 'Debug' or 'Release'")
set(LIBRARY_TYPE STATIC CACHE BOOL "Choose either STATIC or SHARED.")
set(BUILD_MOREFEM_UNIQUE_LIBRARY True CACHE BOOL "Whether a unique library is built for MoReFEM core libraries or on the contrary if it is splitted in modules.")
......
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