diff options
author | Paulo Moura Guedes <moura@kdewebdev.org> | 2006-05-15 12:41:06 +0000 |
---|---|---|
committer | Paulo Moura Guedes <moura@kdewebdev.org> | 2006-05-15 12:41:06 +0000 |
commit | b5acfca94192e6e438221edd4c70eab4741f359e (patch) | |
tree | 61028a0995ded3cd4291b9790806c403d7ee689b | |
parent | 5122b9d5277cf5a0ad6cd20eace8db8c40902be2 (diff) | |
download | extra-cmake-modules-b5acfca94192e6e438221edd4c70eab4741f359e.tar.gz extra-cmake-modules-b5acfca94192e6e438221edd4c70eab4741f359e.tar.bz2 |
Have build type in consideration.
CCMAIL: Peter Kummel [syntheticpp@gmx.net]
svn path=/trunk/KDE/kdelibs/; revision=541049
-rw-r--r-- | modules/FindKDEWIN32.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindKDEWIN32.cmake b/modules/FindKDEWIN32.cmake index f9fa2aec..6bd8b9d3 100644 --- a/modules/FindKDEWIN32.cmake +++ b/modules/FindKDEWIN32.cmake @@ -20,11 +20,11 @@ FIND_PATH(KDEWIN32_INCLUDE_DIR winposix_export.h # at first find the kdewin32 library, this has to be compiled and installed before kdelibs/ # search for kdewin32 in the default install directory for applications (default of (n)make install) -if (MSVC) +if (MSVC AND CMAKE_BUILD_TYPE MATCHES Debug) set(_KDEWIN32_POSTFIX d) -else (MSVC) +else (MSVC AND CMAKE_BUILD_TYPE MATCHES Debug) set(_KDEWIN32_POSTFIX ) -endif (MSVC) +endif (MSVC AND CMAKE_BUILD_TYPE MATCHES Debug) FIND_LIBRARY(KDEWIN32_LIBRARY NAMES kdewin32${_KDEWIN32_POSTFIX} PATHS |