Skip to content
Permalink
Browse files

Style: Reformat code with `cmake-format` 0.6.3

  • Loading branch information
sanssecours committed Dec 14, 2019
1 parent 77794f6 commit ca7b28f30bbe4a32876124e77c3ec22c67ea48d1
@@ -128,23 +128,25 @@ if (XercesC_FOUND)
endif ()
if (EXISTS "${XercesC_LIBRARY}")
set_target_properties (XercesC::XercesC PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES "CXX" IMPORTED_LOCATION
"${XercesC_LIBRARY}")
"${XercesC_LIBRARY}")
endif ()
if (EXISTS "${XercesC_LIBRARY_DEBUG}")
set_property (
TARGET XercesC::XercesC
APPEND
PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties (XercesC::XercesC PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
IMPORTED_LOCATION_DEBUG "${XercesC_LIBRARY_DEBUG}")
set_target_properties (
XercesC::XercesC PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" IMPORTED_LOCATION_DEBUG
"${XercesC_LIBRARY_DEBUG}")
endif ()
if (EXISTS "${XercesC_LIBRARY_RELEASE}")
set_property (
TARGET XercesC::XercesC
APPEND
PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties (XercesC::XercesC PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
IMPORTED_LOCATION_RELEASE "${XercesC_LIBRARY_RELEASE}")
set_target_properties (
XercesC::XercesC PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX" IMPORTED_LOCATION_RELEASE
"${XercesC_LIBRARY_RELEASE}")
endif ()
endif ()
endif ()
@@ -55,7 +55,10 @@ function (add_lib name)
"-Wl,--version-script='${CMAKE_BINARY_DIR}/src/libs/symbols.map'")
endif ()

install (TARGETS elektra-${name} DESTINATION lib${LIB_SUFFIX} EXPORT ElektraTargetsLibelektra)
install (
TARGETS elektra-${name}
DESTINATION lib${LIB_SUFFIX}
EXPORT ElektraTargetsLibelektra)
endif (BUILD_SHARED)

endfunction ()
@@ -14,16 +14,9 @@ target_link_libraries (elektraintercept-env elektra-kdb elektra-meta) # must be

set_target_properties (
elektraintercept-env
PROPERTIES COMPILE_DEFINITIONS
"HAVE_KDBCONFIG_H"
VERSION
${KDB_VERSION}
SOVERSION
${SO_VERSION_GETENV}
CLEAN_DIRECT_OUTPUT
1
LINKER_LANGUAGE
CXX)
PROPERTIES COMPILE_DEFINITIONS "HAVE_KDBCONFIG_H" VERSION ${KDB_VERSION} SOVERSION ${SO_VERSION_GETENV} CLEAN_DIRECT_OUTPUT 1

LINKER_LANGUAGE CXX)

install (TARGETS elektraintercept-env DESTINATION lib${LIB_SUFFIX})

@@ -89,16 +89,9 @@ if (BUILD_SHARED)
set (elektra-all_LIBRARIES elektra-core elektra-kdb ${elektra-extension_LIBRARIES})
set_target_properties (
${elektra-all_LIBRARIES}
PROPERTIES COMPILE_DEFINITIONS
"HAVE_KDBCONFIG_H"
VERSION
${KDB_VERSION}
SOVERSION
${SO_VERSION}
CLEAN_DIRECT_OUTPUT
1
LINK_DEPENDS
"${__symbols_file}")
PROPERTIES COMPILE_DEFINITIONS "HAVE_KDBCONFIG_H" VERSION ${KDB_VERSION} SOVERSION ${SO_VERSION} CLEAN_DIRECT_OUTPUT 1

LINK_DEPENDS "${__symbols_file}")

if (${LD_ACCEPTS_VERSION_SCRIPT})
set_target_properties (${elektra-all_LIBRARIES} PROPERTIES LINK_FLAGS "-Wl,--version-script='${__symbols_file}'")
@@ -113,7 +106,10 @@ if (BUILD_SHARED)
set (ELEKTRA_RPATH "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/${TARGET_PLUGIN_FOLDER}")
set_target_properties (${elektra-all_LIBRARIES} PROPERTIES INSTALL_RPATH "${ELEKTRA_RPATH}")

install (TARGETS elektra-core elektra-kdb DESTINATION lib${LIB_SUFFIX} EXPORT ElektraTargetsLibelektra)
install (
TARGETS elektra-core elektra-kdb
DESTINATION lib${LIB_SUFFIX}
EXPORT ElektraTargetsLibelektra)

list (APPEND targets_built ${elektra-all_LIBRARIES})
endif (BUILD_SHARED)
@@ -142,24 +138,16 @@ if (BUILD_FULL)
target_link_libraries (elektra-full ${elektra-full_LIBRARIES})

set_target_properties (
elektra-full
PROPERTIES COMPILE_DEFINITIONS
"HAVE_KDBCONFIG_H;ELEKTRA_STATIC"
VERSION
${KDB_VERSION}
SOVERSION
${SO_VERSION}
CLEAN_DIRECT_OUTPUT
1
LINKER_LANGUAGE
CXX
LINK_DEPENDS
"${__symbols_file}")
elektra-full PROPERTIES COMPILE_DEFINITIONS "HAVE_KDBCONFIG_H;ELEKTRA_STATIC" VERSION ${KDB_VERSION}
SOVERSION ${SO_VERSION} CLEAN_DIRECT_OUTPUT 1 LINKER_LANGUAGE CXX LINK_DEPENDS "${__symbols_file}")
if (${LD_ACCEPTS_VERSION_SCRIPT})
set_target_properties (elektra-full PROPERTIES LINK_FLAGS "-Wl,--version-script='${__symbols_file}'")
endif ()

install (TARGETS elektra-full DESTINATION lib${LIB_SUFFIX} EXPORT ElektraTargetsLibelektra)
install (
TARGETS elektra-full
DESTINATION lib${LIB_SUFFIX}
EXPORT ElektraTargetsLibelektra)

list (APPEND targets_built elektra-full)
endif (BUILD_FULL)
@@ -173,23 +161,17 @@ if (BUILD_STATIC)

set_target_properties (
elektra-static
PROPERTIES COMPILE_DEFINITIONS
"HAVE_KDBCONFIG_H;ELEKTRA_STATIC"
VERSION
${KDB_VERSION}
SOVERSION
${SO_VERSION}
CLEAN_DIRECT_OUTPUT
1
LINKER_LANGUAGE
CXX
LINK_DEPENDS
"${__symbols_file}")
PROPERTIES COMPILE_DEFINITIONS "HAVE_KDBCONFIG_H;ELEKTRA_STATIC" VERSION ${KDB_VERSION} SOVERSION ${SO_VERSION}

CLEAN_DIRECT_OUTPUT 1 LINKER_LANGUAGE CXX LINK_DEPENDS "${__symbols_file}")
if (${LD_ACCEPTS_VERSION_SCRIPT})
set_target_properties (elektra-static PROPERTIES LINK_FLAGS "-Wl,--version-script='${__symbols_file}'")
endif ()

install (TARGETS elektra-static DESTINATION lib${LIB_SUFFIX} EXPORT ElektraTargetsLibelektra)
install (
TARGETS elektra-static
DESTINATION lib${LIB_SUFFIX}
EXPORT ElektraTargetsLibelektra)

list (APPEND targets_built elektra-static)
endif (BUILD_STATIC)
@@ -27,16 +27,9 @@ if (BUILD_SHARED)

set_target_properties (
elektratools
PROPERTIES COMPILE_DEFINITIONS
"HAVE_KDBCONFIG_H;ELEKTRA_SHARED"
VERSION
${KDB_VERSION}
SOVERSION
${SO_VERSION_TOOLS}
CLEAN_DIRECT_OUTPUT
1
LINKER_LANGUAGE
CXX)
PROPERTIES COMPILE_DEFINITIONS "HAVE_KDBCONFIG_H;ELEKTRA_SHARED" VERSION ${KDB_VERSION} SOVERSION ${SO_VERSION_TOOLS}

CLEAN_DIRECT_OUTPUT 1 LINKER_LANGUAGE CXX)

if (${LD_ACCEPTS_VERSION_SCRIPT})
set_target_properties (elektratools PROPERTIES LINK_FLAGS "-Wl,--version-script='${__symbols_file}'")
@@ -52,16 +45,9 @@ if (BUILD_FULL)

set_target_properties (
elektratools-full
PROPERTIES COMPILE_DEFINITIONS
"HAVE_KDBCONFIG_H;ELEKTRA_STATIC"
VERSION
${KDB_VERSION}
SOVERSION
${SO_VERSION_TOOLS}
CLEAN_DIRECT_OUTPUT
1
LINKER_LANGUAGE
CXX)
PROPERTIES COMPILE_DEFINITIONS "HAVE_KDBCONFIG_H;ELEKTRA_STATIC" VERSION ${KDB_VERSION} SOVERSION ${SO_VERSION_TOOLS}

CLEAN_DIRECT_OUTPUT 1 LINKER_LANGUAGE CXX)

if (${LD_ACCEPTS_VERSION_SCRIPT})
set_target_properties (elektratools-full PROPERTIES LINK_FLAGS "-Wl,--version-script='${__symbols_file}'")
@@ -77,16 +63,9 @@ if (BUILD_STATIC)

set_target_properties (
elektratools-static
PROPERTIES COMPILE_DEFINITIONS
"HAVE_KDBCONFIG_H;ELEKTRA_STATIC"
VERSION
${KDB_VERSION}
SOVERSION
${SO_VERSION_TOOLS}
CLEAN_DIRECT_OUTPUT
1
LINKER_LANGUAGE
CXX)
PROPERTIES COMPILE_DEFINITIONS "HAVE_KDBCONFIG_H;ELEKTRA_STATIC" VERSION ${KDB_VERSION} SOVERSION ${SO_VERSION_TOOLS}

CLEAN_DIRECT_OUTPUT 1 LINKER_LANGUAGE CXX)

set_target_properties (elektratools-static PROPERTIES LINKER_LANGUAGE CXX)
if (${LD_ACCEPTS_VERSION_SCRIPT})
@@ -67,17 +67,20 @@ endmacro (do_test)
add_custom_target (
run_all
COMMAND "${CMAKE_BINARY_DIR}/scripts/dev/run_all" "$<CONFIGURATION>"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" USES_TERMINAL)
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
USES_TERMINAL)

add_custom_target (
run_checkshell
COMMAND "${CMAKE_BINARY_DIR}/scripts/dev/run_checkshell" "$<CONFIGURATION>"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" USES_TERMINAL)
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
USES_TERMINAL)

add_custom_target (
run_nocheckshell
COMMAND "${CMAKE_BINARY_DIR}/scripts/dev/run_nocheckshell" "$<CONFIGURATION>"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" USES_TERMINAL)
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
USES_TERMINAL)

add_custom_target (
run_nokdbtests

0 comments on commit ca7b28f

Please sign in to comment.
You can’t perform that action at this time.