aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-11-24 23:23:06 +0000
committerAlexander Neundorf <neundorf@kde.org>2007-11-24 23:23:06 +0000
commit594cb7ec267e0c5e2cb9b956094b19a7f2675bc6 (patch)
treee3267902846293f1e91122bad7167d977a108a16
parent7dd313062785f85184b9ba73bbd34ed4549543ec (diff)
downloadextra-cmake-modules-594cb7ec267e0c5e2cb9b956094b19a7f2675bc6.tar.gz
extra-cmake-modules-594cb7ec267e0c5e2cb9b956094b19a7f2675bc6.tar.bz2
fix indentation
Alex svn path=/trunk/KDE/kdelibs/; revision=741152
-rw-r--r--modules/FindLibraryWithDebug.cmake140
1 files changed, 70 insertions, 70 deletions
diff --git a/modules/FindLibraryWithDebug.cmake b/modules/FindLibraryWithDebug.cmake
index a2593974..58cd7308 100644
--- a/modules/FindLibraryWithDebug.cmake
+++ b/modules/FindLibraryWithDebug.cmake
@@ -4,110 +4,110 @@
# optional debug library with a WIN32_DEBUG_POSTFIX similar
# to CMAKE_DEBUG_POSTFIX when creating a shared lib
# it has to be the second and third argument
-#
+
# Copyright (c) 2007, Christian Ehrlicher, <ch.ehrlicher@gmx.de>
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
MACRO(FIND_LIBRARY_WITH_DEBUG var_name win32_dbg_postfix_name dgb_postfix libname)
- IF(NOT ${win32_dbg_postfix_name} STREQUAL "WIN32_DEBUG_POSTFIX")
+ IF(NOT "${win32_dbg_postfix_name}" STREQUAL "WIN32_DEBUG_POSTFIX")
- # no WIN32_DEBUG_POSTFIX -> simply pass all arguments to FIND_LIBRARY
- FIND_LIBRARY(${var_name}
- ${win32_dbg_postfix_name}
- ${dgb_postfix}
- ${libname}
- ${ARGN}
- )
+ # no WIN32_DEBUG_POSTFIX -> simply pass all arguments to FIND_LIBRARY
+ FIND_LIBRARY(${var_name}
+ ${win32_dbg_postfix_name}
+ ${dgb_postfix}
+ ${libname}
+ ${ARGN}
+ )
- ELSE(NOT ${win32_dbg_postfix_name} STREQUAL "WIN32_DEBUG_POSTFIX")
+ ELSE(NOT "${win32_dbg_postfix_name}" STREQUAL "WIN32_DEBUG_POSTFIX")
- IF(NOT WIN32)
- # on non-win32 we don't need to take care about WIN32_DEBUG_POSTFIX
+ IF(NOT WIN32)
+ # on non-win32 we don't need to take care about WIN32_DEBUG_POSTFIX
- FIND_LIBRARY(${var_name} ${libname} ${ARGN})
+ FIND_LIBRARY(${var_name} ${libname} ${ARGN})
- ELSE(NOT WIN32)
+ ELSE(NOT WIN32)
- # 1. get all possible libnames
- SET(args ${ARGN})
- SET(newargs "")
- SET(libnames_release "")
- SET(libnames_debug "")
+ # 1. get all possible libnames
+ SET(args ${ARGN})
+ SET(newargs "")
+ SET(libnames_release "")
+ SET(libnames_debug "")
- LIST(LENGTH args listCount)
+ LIST(LENGTH args listCount)
- IF("${libname}" STREQUAL "NAMES")
- SET(append_rest 0)
- LIST(APPEND args " ")
+ IF("${libname}" STREQUAL "NAMES")
+ SET(append_rest 0)
+ LIST(APPEND args " ")
- FOREACH(i RANGE ${listCount})
- LIST(GET args ${i} val)
+ FOREACH(i RANGE ${listCount})
+ LIST(GET args ${i} val)
- IF(append_rest)
- LIST(APPEND newargs ${val})
- ELSE(append_rest)
- IF("${val}" STREQUAL "PATHS")
- LIST(APPEND newargs ${val})
- SET(append_rest 1)
- ELSE("${val}" STREQUAL "PATHS")
- LIST(APPEND libnames_release "${val}")
- LIST(APPEND libnames_debug "${val}${dgb_postfix}")
- ENDIF("${val}" STREQUAL "PATHS")
- ENDIF(append_rest)
+ IF(append_rest)
+ LIST(APPEND newargs ${val})
+ ELSE(append_rest)
+ IF("${val}" STREQUAL "PATHS")
+ LIST(APPEND newargs ${val})
+ SET(append_rest 1)
+ ELSE("${val}" STREQUAL "PATHS")
+ LIST(APPEND libnames_release "${val}")
+ LIST(APPEND libnames_debug "${val}${dgb_postfix}")
+ ENDIF("${val}" STREQUAL "PATHS")
+ ENDIF(append_rest)
- ENDFOREACH(i)
+ ENDFOREACH(i)
- ELSE("${libname}" STREQUAL "NAMES")
+ ELSE("${libname}" STREQUAL "NAMES")
- # just one name
- LIST(APPEND libnames_release "${libname}")
- LIST(APPEND libnames_debug "${libname}${dgb_postfix}")
+ # just one name
+ LIST(APPEND libnames_release "${libname}")
+ LIST(APPEND libnames_debug "${libname}${dgb_postfix}")
- SET(newargs ${args})
+ SET(newargs ${args})
- ENDIF("${libname}" STREQUAL "NAMES")
+ ENDIF("${libname}" STREQUAL "NAMES")
- # search the release lib
- FIND_LIBRARY(${var_name}_RELEASE
- NAMES ${libnames_release}
- ${newargs}
- )
+ # search the release lib
+ FIND_LIBRARY(${var_name}_RELEASE
+ NAMES ${libnames_release}
+ ${newargs}
+ )
- # search the debug lib
- FIND_LIBRARY(${var_name}_DEBUG
- NAMES ${libnames_debug}
- ${newargs}
- )
+ # search the debug lib
+ FIND_LIBRARY(${var_name}_DEBUG
+ NAMES ${libnames_debug}
+ ${newargs}
+ )
- IF(${var_name}_RELEASE AND ${var_name}_DEBUG)
+ IF(${var_name}_RELEASE AND ${var_name}_DEBUG)
- # both libs found
- SET(${var_name} optimized ${${var_name}_RELEASE}
- debug ${${var_name}_DEBUG})
+ # both libs found
+ SET(${var_name} optimized ${${var_name}_RELEASE}
+ debug ${${var_name}_DEBUG})
- ELSE(${var_name}_RELEASE AND ${var_name}_DEBUG)
+ ELSE(${var_name}_RELEASE AND ${var_name}_DEBUG)
- IF(${var_name}_RELEASE)
+ IF(${var_name}_RELEASE)
- # only release found
- SET(${var_name} ${${var_name}_RELEASE})
+ # only release found
+ SET(${var_name} ${${var_name}_RELEASE})
- ELSE(${var_name}_RELEASE)
+ ELSE(${var_name}_RELEASE)
- # only debug (or nothing) found
- SET(${var_name} ${${var_name}_DEBUG})
+ # only debug (or nothing) found
+ SET(${var_name} ${${var_name}_DEBUG})
- ENDIF(${var_name}_RELEASE)
+ ENDIF(${var_name}_RELEASE)
- ENDIF(${var_name}_RELEASE AND ${var_name}_DEBUG)
+ ENDIF(${var_name}_RELEASE AND ${var_name}_DEBUG)
- MARK_AS_ADVANCED(${var_name}_RELEASE)
- MARK_AS_ADVANCED(${var_name}_DEBUG)
+ MARK_AS_ADVANCED(${var_name}_RELEASE)
+ MARK_AS_ADVANCED(${var_name}_DEBUG)
- ENDIF(NOT WIN32)
+ ENDIF(NOT WIN32)
- ENDIF(NOT ${win32_dbg_postfix_name} STREQUAL "WIN32_DEBUG_POSTFIX")
+ ENDIF(NOT "${win32_dbg_postfix_name}" STREQUAL "WIN32_DEBUG_POSTFIX")
ENDMACRO(FIND_LIBRARY_WITH_DEBUG)