Browse Source

modules: updated FindCorrade.cmake.

pull/55/merge
Vladimír Vondruš 12 years ago
parent
commit
7e2cdf3136
  1. 12
      modules/FindCorrade.cmake

12
modules/FindCorrade.cmake

@ -19,6 +19,13 @@
# chosen based on actual build configuration of the project (i.e. Debug build # chosen based on actual build configuration of the project (i.e. Debug build
# is linked to debug libraries, Release build to release libraries). # 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 # Corrade configures the compiler to use C++11 standard. Additionally you can
# use CORRADE_CXX_FLAGS to enable additional pedantic set of warnings and # use CORRADE_CXX_FLAGS to enable additional pedantic set of warnings and
# enable hidden visibility by default. # enable hidden visibility by default.
@ -31,6 +38,7 @@
# CORRADE_BUILD_STATIC - Defined if compiled as static libraries # CORRADE_BUILD_STATIC - Defined if compiled as static libraries
# CORRADE_TARGET_UNIX - Defined if compiled for some Unix flavor # CORRADE_TARGET_UNIX - Defined if compiled for some Unix flavor
# (Linux, BSD, OS X) # (Linux, BSD, OS X)
# CORRADE_TARGET_APPLE - Defined if compiled for OS X
# CORRADE_TARGET_WINDOWS - Defined if compiled for Windows # CORRADE_TARGET_WINDOWS - Defined if compiled for Windows
# CORRADE_TARGET_NACL - Defined if compiled for Google Chrome # CORRADE_TARGET_NACL - Defined if compiled for Google Chrome
# Native Client # Native Client
@ -206,6 +214,10 @@ string(FIND "${_corradeConfigure}" "#define CORRADE_TARGET_UNIX" _TARGET_UNIX)
if(NOT _TARGET_UNIX EQUAL -1) if(NOT _TARGET_UNIX EQUAL -1)
set(CORRADE_TARGET_UNIX 1) set(CORRADE_TARGET_UNIX 1)
endif() 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) string(FIND "${_corradeConfigure}" "#define CORRADE_TARGET_WINDOWS" _TARGET_WINDOWS)
if(NOT _TARGET_WINDOWS EQUAL -1) if(NOT _TARGET_WINDOWS EQUAL -1)
set(CORRADE_TARGET_WINDOWS 1) set(CORRADE_TARGET_WINDOWS 1)

Loading…
Cancel
Save