diff --git a/CMakeLists.txt b/CMakeLists.txt index 83e06fefc..2e5a9ddf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8.8) project(Magnum) option(TARGET_GLES "Build for OpenGL ES 2 instead of desktop OpenGL" OFF) +option(GCC44_COMPATIBILITY "Enable compatibility mode for GCC 4.4 (might disable some features)" OFF) option(GCC45_COMPATIBILITY "Enable compatibility mode for GCC 4.5 (might disable some features)" OFF) option(BUILD_TESTS "Build unit tests (requires Qt4)." OFF) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 287697878..53e370f66 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,6 +4,11 @@ if(TARGET_GLES) set(MAGNUM_TARGET_GLES 1) endif() +if(GCC44_COMPATIBILITY) + set(MAGNUM_GCC44_COMPATIBILITY 1) + set(GCC45_COMPATIBILITY 1) +endif() + if(GCC45_COMPATIBILITY) set(MAGNUM_GCC45_COMPATIBILITY 1) endif() diff --git a/src/magnumConfigure.h.cmake b/src/magnumConfigure.h.cmake index 7204ad4b7..6f1b1af54 100644 --- a/src/magnumConfigure.h.cmake +++ b/src/magnumConfigure.h.cmake @@ -1,2 +1,3 @@ #cmakedefine MAGNUM_TARGET_GLES +#cmakedefine MAGNUM_GCC44_COMPATIBILITY #cmakedefine MAGNUM_GCC45_COMPATIBILITY