X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=cmake%2Fmodules%2FFindQCA2.cmake;h=e2d8f2a5e819e330823c58abfb16ef4dc4a7d73c;hp=cf000e46252355249e7cbd0c59e8bca5e65a9860;hb=60f0c29382823c31a8574d343e2c6fa2f919cb43;hpb=c7e04817ba6c5529d51292cb58cdd0c45666e6d3 diff --git a/cmake/modules/FindQCA2.cmake b/cmake/modules/FindQCA2.cmake index cf000e46..e2d8f2a5 100644 --- a/cmake/modules/FindQCA2.cmake +++ b/cmake/modules/FindQCA2.cmake @@ -30,31 +30,11 @@ else (QCA2_INCLUDE_DIR AND QCA2_LIBRARIES) set(QCA2_DEFINITIONS ${PC_QCA2_CFLAGS_OTHER}) endif (NOT WIN32) - find_library(QCA2_LIBRARIES_DEBUG - NAMES qcad qcad2 + find_library_with_debug(QCA2_LIBRARIES + WIN32_DEBUG_POSTFIX d + NAMES qca HINTS ${PC_QCA2_LIBDIR} ${PC_QCA2_LIBRARY_DIRS} ) - find_library(QCA2_LIBRARIES_RELEASE - NAMES qca qca2 - HINTS ${PC_QCA2_LIBDIR} ${PC_QCA2_LIBRARY_DIRS} - ) - # if the release- as well as the debug-version of the library have been found: - IF (QCA2_LIBRARIES_DEBUG AND QCA2_LIBRARIES_RELEASE) - # if the generator supports configuration types then set - # optimized and debug libraries, or if the CMAKE_BUILD_TYPE has a value - IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) - SET(QCA2_LIBRARIES optimized ${QCA2_LIBRARIES_RELEASE} debug ${QCA2_LIBRARIES_DEBUG}) - ELSE(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) - # if there are no configuration types and CMAKE_BUILD_TYPE has no value - # then just use the release libraries - SET(QCA2_LIBRARIES ${QCA2_LIBRARIES_RELEASE} ) - ENDIF(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE) - ELSE (QCA2_LIBRARIES_DEBUG AND QCA2_LIBRARIES_RELEASE) - IF (QCA2_LIBRARIES_RELEASE) - SET(QCA2_LIBRARIES ${QCA2_LIBRARIES_RELEASE}) - ENDIF (QCA2_LIBRARIES_RELEASE) - ENDIF (QCA2_LIBRARIES_DEBUG AND QCA2_LIBRARIES_RELEASE) - find_path(QCA2_INCLUDE_DIR QtCrypto HINTS ${PC_QCA2_INCLUDEDIR} ${PC_QCA2_INCLUDE_DIRS}