aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindKopete.cmake
diff options
context:
space:
mode:
authorKevin Funk <kfunk@kde.org>2015-12-18 12:37:19 +0100
committerKevin Funk <kfunk@kde.org>2015-12-18 15:57:50 +0100
commit942ba80dae253fef93094d178da3ce0abc47da5d (patch)
treec1e633d8caa14d02536806c91a7cf30f3680c809 /attic/modules/FindKopete.cmake
parentbdd38b5f45a889043deb0665bdb66086ca6c9bf5 (diff)
downloadextra-cmake-modules-942ba80dae253fef93094d178da3ce0abc47da5d.tar.gz
extra-cmake-modules-942ba80dae253fef93094d178da3ce0abc47da5d.tar.bz2
CMake: Cleanup: Strip text from endif/else
REVIEW: 126414
Diffstat (limited to 'attic/modules/FindKopete.cmake')
-rw-r--r--attic/modules/FindKopete.cmake38
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()