From 7e2cdf3136aa07fe1e7f8236fa6a014f3b14325a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 4 Jun 2014 21:11:30 +0200 Subject: [PATCH] modules: updated FindCorrade.cmake. --- modules/FindCorrade.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/FindCorrade.cmake b/modules/FindCorrade.cmake index a34fa3931..2a54a7861 100644 --- a/modules/FindCorrade.cmake +++ b/modules/FindCorrade.cmake @@ -19,6 +19,13 @@ # chosen based on actual build configuration of the project (i.e. Debug build # is linked to debug libraries, Release build to release libraries). # +# On multi-configuration build systems (such as Visual Studio or XCode) the +# preprocessor variable CORRADE_IS_DEBUG_BUILD is defined if given build +# configuration is Debug (not Corrade itself, but build configuration of the +# project using it). Useful e.g. for selecting proper plugin directory. On +# single-configuration build systems (such as Makefiles) this information is +# not needed and thus the variable is not defined in any case. +# # Corrade configures the compiler to use C++11 standard. Additionally you can # use CORRADE_CXX_FLAGS to enable additional pedantic set of warnings and # enable hidden visibility by default. @@ -31,6 +38,7 @@ # CORRADE_BUILD_STATIC - Defined if compiled as static libraries # CORRADE_TARGET_UNIX - Defined if compiled for some Unix flavor # (Linux, BSD, OS X) +# CORRADE_TARGET_APPLE - Defined if compiled for OS X # CORRADE_TARGET_WINDOWS - Defined if compiled for Windows # CORRADE_TARGET_NACL - Defined if compiled for Google Chrome # Native Client @@ -206,6 +214,10 @@ string(FIND "${_corradeConfigure}" "#define CORRADE_TARGET_UNIX" _TARGET_UNIX) if(NOT _TARGET_UNIX EQUAL -1) set(CORRADE_TARGET_UNIX 1) endif() +string(FIND "${_corradeConfigure}" "#define CORRADE_TARGET_APPLE" _TARGET_APPLE) +if(NOT _TARGET_APPLE EQUAL -1) + set(CORRADE_TARGET_APPLE 1) +endif() string(FIND "${_corradeConfigure}" "#define CORRADE_TARGET_WINDOWS" _TARGET_WINDOWS) if(NOT _TARGET_WINDOWS EQUAL -1) set(CORRADE_TARGET_WINDOWS 1)