From 7e4143f86bd83aec4c882f626da616a797ef1f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 29 Jun 2014 10:46:25 +0200 Subject: [PATCH] Proper default plugin dir for debug on multi-configuration buildsystems. Similar logic to what we expose to the outside world. --- src/Magnum/Text/fontconverterConfigure.h.cmake | 4 ++++ .../TextureTools/distancefieldconverterConfigure.h.cmake | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Magnum/Text/fontconverterConfigure.h.cmake b/src/Magnum/Text/fontconverterConfigure.h.cmake index fa22c14a9..5fc249d4e 100644 --- a/src/Magnum/Text/fontconverterConfigure.h.cmake +++ b/src/Magnum/Text/fontconverterConfigure.h.cmake @@ -23,4 +23,8 @@ DEALINGS IN THE SOFTWARE. */ +#ifdef CORRADE_IS_DEBUG_BUILD +#define MAGNUM_PLUGINS_DIR "${MAGNUM_PLUGINS_DEBUG_INSTALL_DIR}" +#else #define MAGNUM_PLUGINS_DIR "${MAGNUM_PLUGINS_INSTALL_DIR}" +#endif diff --git a/src/Magnum/TextureTools/distancefieldconverterConfigure.h.cmake b/src/Magnum/TextureTools/distancefieldconverterConfigure.h.cmake index fa22c14a9..5fc249d4e 100644 --- a/src/Magnum/TextureTools/distancefieldconverterConfigure.h.cmake +++ b/src/Magnum/TextureTools/distancefieldconverterConfigure.h.cmake @@ -23,4 +23,8 @@ DEALINGS IN THE SOFTWARE. */ +#ifdef CORRADE_IS_DEBUG_BUILD +#define MAGNUM_PLUGINS_DIR "${MAGNUM_PLUGINS_DEBUG_INSTALL_DIR}" +#else #define MAGNUM_PLUGINS_DIR "${MAGNUM_PLUGINS_INSTALL_DIR}" +#endif