Browse Source

Error out when compatibility branch is needed for particular compiler.

pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
02be314e9c
  1. 7
      CMakeLists.txt

7
CMakeLists.txt

@ -90,6 +90,13 @@ if(BUILD_TESTS)
enable_testing()
endif()
# Check compiler compatibility
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND "${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.6.0")
message(FATAL_ERROR "Compatibility branch of Magnum is needed for use with GCC < 4.6. See the documentation for more information.")
elseif(MSVC)
message(FATAL_ERROR "Compatibility branch of Magnum is needed for use with MSVC. See the documentation for more information.")
endif()
# If targeting NaCl or Emscripten, set explicit OpenGL ES 2.0 support
if(CORRADE_TARGET_NACL OR CORRADE_TARGET_EMSCRIPTEN)
set(TARGET_GLES 1)

Loading…
Cancel
Save