diff options
Diffstat (limited to 'attic/modules/FindKopete.cmake')
-rw-r--r-- | attic/modules/FindKopete.cmake | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/attic/modules/FindKopete.cmake b/attic/modules/FindKopete.cmake index cf65b5a1..0bb98ee8 100644 --- a/attic/modules/FindKopete.cmake +++ b/attic/modules/FindKopete.cmake @@ -15,7 +15,7 @@ if(KOPETE_INCLUDE_DIR AND KOPETE_LIBRARIES) # read from cache set(Kopete_FOUND TRUE) -else(KOPETE_INCLUDE_DIR AND KOPETE_LIBRARIES) +else() FIND_PATH(KOPETE_INCLUDE_DIR NAMES @@ -34,7 +34,7 @@ else(KOPETE_INCLUDE_DIR AND KOPETE_LIBRARIES) ) if(KOPETE_INCLUDE_DIR AND KOPETE_LIBRARIES) set(Kopete_FOUND TRUE) - endif(KOPETE_INCLUDE_DIR AND KOPETE_LIBRARIES) + endif() if(MSVC) FIND_LIBRARY(KOPETE_LIBRARIES_DEBUG @@ -46,42 +46,42 @@ else(KOPETE_INCLUDE_DIR AND KOPETE_LIBRARIES) ) if(NOT KOPETE_LIBRARIES_DEBUG) set(Kopete_FOUND FALSE) - endif(NOT KOPETE_LIBRARIES_DEBUG) + endif() if(MSVC_IDE) if( NOT KOPETE_LIBRARIES_DEBUG OR NOT KOPETE_LIBRARIES) message(FATAL_ERROR "\nCould NOT find the debug AND release version of the Kopete library.\nYou need to have both to use MSVC projects.\nPlease build and install both kopete libraries first.\n") - endif( NOT KOPETE_LIBRARIES_DEBUG OR NOT KOPETE_LIBRARIES) - else(MSVC_IDE) + endif() + else() string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER) if(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) set(KOPETE_LIBRARIES ${KOPETE_LIBRARIES_DEBUG}) - else(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) + else() set(KOPETE_LIBRARIES ${KOPETE_LIBRARIES}) - endif(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) - endif(MSVC_IDE) - endif(MSVC) + endif() + endif() + endif() if(Kopete_FOUND) if(NOT Kopete_FIND_QUIETLY) message(STATUS "Found Kopete: ${KOPETE_LIBRARIES}") - endif(NOT Kopete_FIND_QUIETLY) - else(Kopete_FOUND) + endif() + else() if(Kopete_FIND_REQUIRED) if(NOT KOPETE_INCLUDE_DIR) message(FATAL_ERROR "Could not find Kopete includes.") - endif(NOT KOPETE_INCLUDE_DIR) + endif() if(NOT KOPETE_LIBRARIES) message(FATAL_ERROR "Could not find Kopete library.") - endif(NOT KOPETE_LIBRARIES) - else(Kopete_FIND_REQUIRED) + endif() + else() if(NOT KOPETE_INCLUDE_DIR) message(STATUS "Could not find Kopete includes.") - endif(NOT KOPETE_INCLUDE_DIR) + endif() if(NOT KOPETE_LIBRARIES) message(STATUS "Could not find Kopete library.") - endif(NOT KOPETE_LIBRARIES) - endif(Kopete_FIND_REQUIRED) - endif(Kopete_FOUND) + endif() + endif() + endif() -endif(KOPETE_INCLUDE_DIR AND KOPETE_LIBRARIES) +endif() |