diff --git a/CMakeLists.txt b/CMakeLists.txt index e99cdc274..fe5f7a063 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ REQUIRE_CXX_SOURCE_COMPILES("template class C; int main() { return 0 # implementation for some things (like std::regex_iterator). # This needs to test *linking*, not compilation; cmake does both at the same # time, so the test below works. -REQUIRE_CXX_SOURCE_COMPILES("#include \nint main() { std::cregex_iterator ri; }" HAVE_WORKING_REGEX) +REQUIRE_CXX_SOURCE_COMPILES("#include \nint main() { std::cregex_iterator ri; }" HAVE_WORKING_REGEX " If you are using gcc, please update to gcc 4.9.") if(MSVC_VERSION GREATER 1499) list(APPEND OC_CXX_FLAGS /MP) diff --git a/README b/README index 966d11400..a39762ff2 100644 --- a/README +++ b/README @@ -41,6 +41,7 @@ system. For Debian based distributions, you will need these packages: libglew-dev libgtk2.0-dev libjpeg-dev libpng-dev libsdl1.2-dev libsdl-mixer1.2-dev libupnp-dev libxrandr-dev x11proto-core-dev zlib1g-dev +At least gcc-4.9 is required. Windows Specific ================ diff --git a/cmake/RequireCXXSourceCompiles.cmake b/cmake/RequireCXXSourceCompiles.cmake index 4877502de..cec4fac0a 100644 --- a/cmake/RequireCXXSourceCompiles.cmake +++ b/cmake/RequireCXXSourceCompiles.cmake @@ -16,6 +16,6 @@ macro(REQUIRE_CXX_SOURCE_COMPILES _code _var) CHECK_CXX_SOURCE_COMPILES("${_code}" ${_var}) if(NOT ${_var}) unset(${_var} CACHE) - MESSAGE(FATAL_ERROR "${_var} is required for this project to build properly. Aborting.") + MESSAGE(FATAL_ERROR "${_var} is required for this project to build properly.${ARGN} Aborting.") endif() endmacro()