aboutsummaryrefslogtreecommitdiff
path: root/modules/FindSoprano.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindSoprano.cmake')
-rw-r--r--modules/FindSoprano.cmake45
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)