mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Only display an error message if C++11 support is noted as REQUIRED
This commit is contained in:
parent
046a4e6048
commit
0bac3406dd
@ -326,9 +326,12 @@ if (NOT HAVE_TUPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CXX_FEATURES_MISSING)
|
if(CXX_FEATURES_MISSING)
|
||||||
message(FATAL_ERROR
|
set (CXX11FEATURES_FOUND FALSE)
|
||||||
"Your C++ compiler does not support the minimum set of C++-2011 features required. "
|
if (CXX11Features_FIND_REQUIRED)
|
||||||
"Make sure to use a compiler which implements all C++-2011 features provided by GCC 4.4. "
|
message(FATAL_ERROR
|
||||||
"Your compiler does not seem to implement the following features:\n"
|
"Your C++ compiler does not support the minimum set of C++-2011 features required. "
|
||||||
"${CXX_FEATURES_MISSING}")
|
"Make sure to use a compiler which implements all C++-2011 features provided by GCC 4.4. "
|
||||||
|
"Your compiler does not seem to implement the following features:\n"
|
||||||
|
"${CXX_FEATURES_MISSING}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user