diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-09-28 20:37:38 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-10-01 18:31:41 +0200 |
commit | baf8f635fff9e3b5417d3d88efb35df3f1c59a8d (patch) | |
tree | 98a0e3dcb62d3730da9111cfebc0f510c1a55ad6 /cmake | |
parent | 779420d50d366fd8864a3c5bf5585160443a28cc (diff) | |
download | weechat-baf8f635fff9e3b5417d3d88efb35df3f1c59a8d.zip |
core: fix style in CMake files
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindAsciidoctor.cmake | 4 | ||||
-rw-r--r-- | cmake/FindAspell.cmake | 2 | ||||
-rw-r--r-- | cmake/FindCppUTest.cmake | 4 | ||||
-rw-r--r-- | cmake/FindENCHANT.cmake | 21 | ||||
-rw-r--r-- | cmake/FindGettext.cmake | 7 | ||||
-rw-r--r-- | cmake/FindGnuTLS.cmake | 10 | ||||
-rw-r--r-- | cmake/FindGuile.cmake | 4 | ||||
-rw-r--r-- | cmake/FindIconv.cmake | 4 | ||||
-rw-r--r-- | cmake/FindLua.cmake | 4 | ||||
-rw-r--r-- | cmake/FindPHP.cmake | 6 | ||||
-rw-r--r-- | cmake/FindPerl.cmake | 18 | ||||
-rw-r--r-- | cmake/FindPython.cmake | 4 | ||||
-rw-r--r-- | cmake/FindRuby.cmake | 20 | ||||
-rw-r--r-- | cmake/FindZLIB.cmake | 2 |
14 files changed, 55 insertions, 55 deletions
diff --git a/cmake/FindAsciidoctor.cmake b/cmake/FindAsciidoctor.cmake index 43f61cef8..9ff57ca01 100644 --- a/cmake/FindAsciidoctor.cmake +++ b/cmake/FindAsciidoctor.cmake @@ -34,7 +34,7 @@ if(ASCIIDOCTOR_EXECUTABLE) execute_process( COMMAND ${ASCIIDOCTOR_EXECUTABLE} --version OUTPUT_VARIABLE ASCIIDOCTOR_VERSION - ) + ) string(REGEX REPLACE "^Asciidoctor ([^ ]+) .*" "\\1" ASCIIDOCTOR_VERSION "${ASCIIDOCTOR_VERSION}") @@ -45,5 +45,5 @@ if(ASCIIDOCTOR_EXECUTABLE) mark_as_advanced( ASCIIDOCTOR_EXECUTABLE ASCIIDOCTOR_VERSION - ) + ) endif() diff --git a/cmake/FindAspell.cmake b/cmake/FindAspell.cmake index 96c5fb906..e9761eaad 100644 --- a/cmake/FindAspell.cmake +++ b/cmake/FindAspell.cmake @@ -55,4 +55,4 @@ endif() mark_as_advanced( ASPELL_INCLUDE_PATH ASPELL_LIBRARY - ) +) diff --git a/cmake/FindCppUTest.cmake b/cmake/FindCppUTest.cmake index 4bf60c151..b2ce51404 100644 --- a/cmake/FindCppUTest.cmake +++ b/cmake/FindCppUTest.cmake @@ -27,8 +27,8 @@ # CPPUTEST_LIBRARIES = Link options to compile with CppUTest if(CPPUTEST_FOUND) - # Already in cache, be silent - set(CPPUTEST_FIND_QUIETLY TRUE) + # Already in cache, be silent + set(CPPUTEST_FIND_QUIETLY TRUE) endif() find_package(PkgConfig) diff --git a/cmake/FindENCHANT.cmake b/cmake/FindENCHANT.cmake index dd9a90962..3fbcb35ee 100644 --- a/cmake/FindENCHANT.cmake +++ b/cmake/FindENCHANT.cmake @@ -13,10 +13,8 @@ if(ENCHANT_INCLUDE_DIR AND ENCHANT_LIBRARIES) - # in cache already set(ENCHANT_FOUND TRUE) - else() if(NOT WIN32) # use pkg-config to get the directories and then use these values @@ -27,17 +25,19 @@ else() endif() find_path(ENCHANT_INCLUDE_DIR - NAMES enchant++.h - HINTS ${PC_ENCHANT_INCLUDEDIR} - ${PC_ENCHANT_INCLUDE_DIRS} - PATH_SUFFIXES enchant ) + NAMES enchant++.h + HINTS ${PC_ENCHANT_INCLUDEDIR} ${PC_ENCHANT_INCLUDE_DIRS} + PATH_SUFFIXES enchant + ) - find_library(ENCHANT_LIBRARIES NAMES enchant - HINTS ${PC_ENCHANT_LIBDIR} - ${PC_ENCHANT_LIBRARY_DIRS} ) + find_library(ENCHANT_LIBRARIES + NAMES enchant + HINTS ${PC_ENCHANT_LIBDIR} + ${PC_ENCHANT_LIBRARY_DIRS} + ) include(FindPackageHandleStandardArgs) - find_package_handle_standard_args(ENCHANT DEFAULT_MSG ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES ) + find_package_handle_standard_args(ENCHANT DEFAULT_MSG ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES) mark_as_advanced(ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES) @@ -47,5 +47,4 @@ else() check_symbol_exists(enchant_get_version "enchant.h" HAVE_ENCHANT_GET_VERSION) set(CMAKE_REQUIRED_INCLUDES) set(CMAKE_REQUIRED_LIBRARIES) - endif() diff --git a/cmake/FindGettext.cmake b/cmake/FindGettext.cmake index bec9ab496..fb7adb58c 100644 --- a/cmake/FindGettext.cmake +++ b/cmake/FindGettext.cmake @@ -28,8 +28,8 @@ # GETTEXT_FOUND = is gettext usable on system? if(GETTEXT_FOUND) - # Already in cache, be silent - set(GETTEXT_FIND_QUIETLY TRUE) + # Already in cache, be silent + set(GETTEXT_FIND_QUIETLY TRUE) endif() include(CheckIncludeFiles) @@ -54,7 +54,7 @@ if(HAVE_LIBINTL_H) PATHS /usr/local/lib /usr/lib - ) + ) if(LIBINTL_LIBRARY) if(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") set(CMAKE_REQUIRED_LIBRARIES "iconv") @@ -62,7 +62,6 @@ if(HAVE_LIBINTL_H) else() check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT) endif() - if(LIBINTL_HAS_DGETTEXT) set(GETTEXT_FOUND TRUE) endif() diff --git a/cmake/FindGnuTLS.cmake b/cmake/FindGnuTLS.cmake index ec8bc8909..3d4b3f62f 100644 --- a/cmake/FindGnuTLS.cmake +++ b/cmake/FindGnuTLS.cmake @@ -30,23 +30,23 @@ # GNUTLS_LDFLAGS = ldflags to use to compile if(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY) - # Already in cache, be silent - set(GNUTLS_FIND_QUIETLY TRUE) + # Already in cache, be silent + set(GNUTLS_FIND_QUIETLY TRUE) endif() find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config) execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=prefix gnutls - OUTPUT_VARIABLE GNUTLS_PREFIX + OUTPUT_VARIABLE GNUTLS_PREFIX ) execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --cflags gnutls - OUTPUT_VARIABLE GNUTLS_CFLAGS + OUTPUT_VARIABLE GNUTLS_CFLAGS ) string(REGEX REPLACE "[\r\n]" "" GNUTLS_CFLAGS "${GNUTLS_CFLAGS}") execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --libs gnutls - OUTPUT_VARIABLE GNUTLS_LDFLAGS + OUTPUT_VARIABLE GNUTLS_LDFLAGS ) string(REGEX REPLACE "[\r\n]" "" GNUTLS_LDFLAGS "${GNUTLS_LDFLAGS}") diff --git a/cmake/FindGuile.cmake b/cmake/FindGuile.cmake index 7573b0879..e1df576ac 100644 --- a/cmake/FindGuile.cmake +++ b/cmake/FindGuile.cmake @@ -27,8 +27,8 @@ # GUILE_LIBRARIES = Link options to compile Guile if(GUILE_FOUND) - # Already in cache, be silent - set(GUILE_FIND_QUIETLY TRUE) + # Already in cache, be silent + set(GUILE_FIND_QUIETLY TRUE) endif() find_package(PkgConfig) diff --git a/cmake/FindIconv.cmake b/cmake/FindIconv.cmake index edcd42856..c48ae431a 100644 --- a/cmake/FindIconv.cmake +++ b/cmake/FindIconv.cmake @@ -29,8 +29,8 @@ # ICONV_FOUND = is iconv usable on system? if(ICONV_FOUND) - # Already in cache, be silent - set(ICONV_FIND_QUIETLY TRUE) + # Already in cache, be silent + set(ICONV_FIND_QUIETLY TRUE) endif() include(CheckLibraryExists) diff --git a/cmake/FindLua.cmake b/cmake/FindLua.cmake index 85bb62e39..35b3879ee 100644 --- a/cmake/FindLua.cmake +++ b/cmake/FindLua.cmake @@ -29,8 +29,8 @@ # LUA_FOUND = is liblua usable on system? if(LUA_FOUND) - # Already in cache, be silent - set(LUA_FIND_QUIETLY TRUE) + # Already in cache, be silent + set(LUA_FIND_QUIETLY TRUE) endif() find_package(PkgConfig) diff --git a/cmake/FindPHP.cmake b/cmake/FindPHP.cmake index f253cc1ee..9654a42d3 100644 --- a/cmake/FindPHP.cmake +++ b/cmake/FindPHP.cmake @@ -32,7 +32,8 @@ if(NOT PHP_FOUND) php-config7.2 php-config72 php-config7.1 php-config71 php-config7.0 php-config70 - php-config php-config7) + php-config php-config7 + ) if (PHP_CONFIG_EXECUTABLE) execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --prefix OUTPUT_VARIABLE PHP_LIB_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --includes OUTPUT_VARIABLE PHP_INCLUDE_DIRS OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -41,7 +42,8 @@ if(NOT PHP_FOUND) if(${PHP_VERSION} MATCHES "^7") find_library(PHP_LIB NAMES php7.3 php7.2 php7.1 php7.0 php7 - HINTS ${PHP_LIB_PREFIX} ${PHP_LIB_PREFIX}/lib ${PHP_LIB_PREFIX}/lib64) + HINTS ${PHP_LIB_PREFIX} ${PHP_LIB_PREFIX}/lib ${PHP_LIB_PREFIX}/lib64 + ) if(PHP_LIB) get_filename_component(PHP_LIB_DIR ${PHP_LIB} DIRECTORY) string(REPLACE "-I" "" PHP_INCLUDE_DIRS ${PHP_INCLUDE_DIRS}) diff --git a/cmake/FindPerl.cmake b/cmake/FindPerl.cmake index fa50b7f58..97e6c8008 100644 --- a/cmake/FindPerl.cmake +++ b/cmake/FindPerl.cmake @@ -29,31 +29,31 @@ # PERL_LFLAGS = perl compiler options for linking if(PERL_FOUND) - # Already in cache, be silent - set(PERL_FIND_QUIETLY TRUE) + # Already in cache, be silent + set(PERL_FIND_QUIETLY TRUE) endif() find_program(PERL_EXECUTABLE NAMES perl perl5 PATHS /usr/bin /usr/local/bin /usr/pkg/bin - ) +) if(PERL_EXECUTABLE) execute_process( COMMAND ${PERL_EXECUTABLE} -MConfig -e "print \"\$Config{archlibexp}/CORE\"" OUTPUT_VARIABLE PERL_INTERNAL_DIR - ) + ) execute_process( COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ccopts OUTPUT_VARIABLE PERL_CFLAGS - ) + ) execute_process( COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ldopts OUTPUT_VARIABLE PERL_LFLAGS - ) + ) # remove the new lines from the output by replacing them with empty strings string(REPLACE "\n" "" PERL_INTERNAL_DIR "${PERL_INTERNAL_DIR}") @@ -63,12 +63,12 @@ if(PERL_EXECUTABLE) find_path(PERL_INCLUDE_PATH NAMES perl.h PATHS ${PERL_INTERNAL_DIR} - ) + ) find_library(PERL_LIBRARY NAMES perl PATHS /usr/lib /usr/local/lib /usr/pkg/lib ${PERL_INTERNAL_DIR} - ) + ) if(PERL_LIBRARY AND PERL_INCLUDE_PATH) set(PERL_FOUND TRUE) @@ -80,5 +80,5 @@ if(PERL_EXECUTABLE) PERL_LIBRARY PERL_CFLAGS PERL_LFLAGS - ) + ) endif() diff --git a/cmake/FindPython.cmake b/cmake/FindPython.cmake index 2e71e4c57..dd961c686 100644 --- a/cmake/FindPython.cmake +++ b/cmake/FindPython.cmake @@ -31,7 +31,7 @@ include(FindPkgConfig) if(ENABLE_PYTHON2) - pkg_check_modules(PYTHON python2) + pkg_check_modules(PYTHON python2) else() - pkg_check_modules(PYTHON python3) + pkg_check_modules(PYTHON python3) endif() diff --git a/cmake/FindRuby.cmake b/cmake/FindRuby.cmake index 8297e0536..e0696cdf0 100644 --- a/cmake/FindRuby.cmake +++ b/cmake/FindRuby.cmake @@ -27,8 +27,8 @@ # RUBY_LIB = ruby library (found without pkg-config) if(RUBY_FOUND) - # Already in cache, be silent - set(RUBY_FIND_QUIETLY TRUE) + # Already in cache, be silent + set(RUBY_FIND_QUIETLY TRUE) endif() find_package(PkgConfig) @@ -43,33 +43,33 @@ else() find_program(RUBY_EXECUTABLE NAMES ruby2.6.0 ruby260 ruby2.6 ruby2.5.0 ruby250 ruby2.5 ruby2.4.0 ruby240 ruby2.4 ruby2.3.0 ruby230 ruby2.3 ruby23 ruby2.2.3 ruby223 ruby2.2.2 ruby222 ruby2.2.1 ruby221 ruby2.2.0 ruby220 ruby2.2 ruby22 ruby2.1.7 ruby217 ruby2.1.6 ruby216 ruby2.1.5 ruby215 ruby2.1.4 ruby214 ruby2.1.3 ruby213 ruby2.1.2 ruby212 ruby2.1.1 ruby211 ruby2.1.0 ruby210 ruby2.1 ruby21 ruby2.0 ruby20 ruby1.9.3 ruby193 ruby1.9.2 ruby192 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby PATHS /usr/bin /usr/local/bin /usr/pkg/bin - ) + ) if(RUBY_EXECUTABLE) execute_process( COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir'] || RbConfig::CONFIG['archdir']" OUTPUT_VARIABLE RUBY_ARCH_DIR - ) + ) execute_process( COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['arch']" OUTPUT_VARIABLE RUBY_ARCH - ) + ) execute_process( COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['libdir']" OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH - ) + ) execute_process( COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubylibdir']" OUTPUT_VARIABLE RUBY_RUBY_LIB_PATH - ) + ) find_path(RUBY_INCLUDE_DIRS NAMES ruby.h PATHS ${RUBY_ARCH_DIR} - ) + ) set(RUBY_INCLUDE_ARCH "${RUBY_INCLUDE_DIRS}/${RUBY_ARCH}") find_library(RUBY_LIB NAMES ruby-1.9.3 ruby1.9.3 ruby193 ruby-1.9.2 ruby1.9.2 ruby192 ruby-1.9.1 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby PATHS ${RUBY_POSSIBLE_LIB_PATH} ${RUBY_RUBY_LIB_PATH} - ) + ) if(RUBY_LIB AND RUBY_INCLUDE_DIRS) set(RUBY_FOUND TRUE) endif() @@ -78,6 +78,6 @@ else() RUBY_INCLUDE_DIRS RUBY_LIBRARY_DIRS RUBY_LIB - ) + ) endif() endif() diff --git a/cmake/FindZLIB.cmake b/cmake/FindZLIB.cmake index 6ac90ee42..1713b05cf 100644 --- a/cmake/FindZLIB.cmake +++ b/cmake/FindZLIB.cmake @@ -41,7 +41,7 @@ find_library(ZLIB_LIBRARY ${ZLIB_NAMES} PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath]/lib" - ) +) mark_as_advanced(ZLIB_LIBRARY ZLIB_INCLUDE_DIR) if(ZLIB_INCLUDE_DIR AND EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h") |