diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2007-09-24 10:53:59 +0000 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2007-09-24 10:53:59 +0000 |
commit | 0e93aecc9d6e8736fa9b2bf0b9a8c6adc30e6337 (patch) | |
tree | 29b6d12bd7c97ba9a9e60bc6758a143f7d9bb416 /modules/FindSoprano.cmake | |
parent | f835d46e735a731e38cfcfa39a91a97851123ad6 (diff) | |
download | extra-cmake-modules-0e93aecc9d6e8736fa9b2bf0b9a8c6adc30e6337.tar.gz extra-cmake-modules-0e93aecc9d6e8736fa9b2bf0b9a8c6adc30e6337.tar.bz2 |
switch to new macro FIND_LIBRARY_EX() to avoid code duplication
svn path=/trunk/KDE/kdelibs/; revision=716254
Diffstat (limited to 'modules/FindSoprano.cmake')
-rw-r--r-- | modules/FindSoprano.cmake | 45 |
1 files changed, 7 insertions, 38 deletions
diff --git a/modules/FindSoprano.cmake b/modules/FindSoprano.cmake index 30491fca..18c0893e 100644 --- a/modules/FindSoprano.cmake +++ b/modules/FindSoprano.cmake @@ -15,44 +15,13 @@ else(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES) ${INCLUDE_INSTALL_DIR} ) - if(MSVC) - FIND_LIBRARY(SOPRANO_LIBRARIES_DEBUG - NAMES - sopranod - PATHS - ${KDE4_LIB_DIR} - ${LIB_INSTALL_DIR} - ) - FIND_LIBRARY(SOPRANO_LIBRARIES_RELEASE - NAMES - soprano - PATHS - ${KDE4_LIB_DIR} - ${LIB_INSTALL_DIR} - ) - - if(SOPRANO_LIBRARIES_DEBUG AND SOPRANO_LIBRARIES_RELEASE) - set(SOPRANO_LIBRARIES optimized ${SOPRANO_LIBRARIES_RELEASE} - debug ${SOPRANO_LIBRARIES_DEBUG}) - else(SOPRANO_LIBRARIES_DEBUG AND SOPRANO_LIBRARIES_RELEASE) - if(SOPRANO_LIBRARIES_DEBUG) - set(SOPRANO_LIBRARIES ${SOPRANO_LIBRARIES_DEBUG}) - else(SOPRANO_LIBRARIES_DEBUG) - if(SOPRANO_LIBRARIES_RELEASE) - set(SOPRANO_LIBRARIES ${SOPRANO_LIBRARIES_RELEASE}) - endif(SOPRANO_LIBRARIES_RELEASE) - endif(SOPRANO_LIBRARIES_DEBUG) - endif(SOPRANO_LIBRARIES_DEBUG AND SOPRANO_LIBRARIES_RELEASE) - - else(MSVC) - FIND_LIBRARY(SOPRANO_LIBRARIES - NAMES - soprano - PATHS - ${KDE4_LIB_DIR} - ${LIB_INSTALL_DIR} - ) - endif(MSVC) + FIND_LIBRARY_EX(SOPRANO_LIBRARIES + WIN32_DEBUG_POSTFIX d + NAMES soprano + PATHS + ${KDE4_LIB_DIR} + ${LIB_INSTALL_DIR} + ) if(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES) set(Soprano_FOUND TRUE) |