From fb473a9bd6f1cef5caa5adae3f43ddf8c1133f0f Mon Sep 17 00:00:00 2001 From: Robert Sowula Date: Fri, 9 Apr 2021 10:40:10 +0200 Subject: [PATCH] style: reformat cmake --- src/bindings/swig/ruby/CMakeLists.txt | 5 ++++- src/plugins/gitresolver/CMakeLists.txt | 3 +-- src/plugins/ruby/CMakeLists.txt | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/bindings/swig/ruby/CMakeLists.txt b/src/bindings/swig/ruby/CMakeLists.txt index becad72601b..dad6ebf76c2 100644 --- a/src/bindings/swig/ruby/CMakeLists.txt +++ b/src/bindings/swig/ruby/CMakeLists.txt @@ -153,7 +153,10 @@ else () endif () install (TARGETS swig-ruby swig-ruby-tools LIBRARY DESTINATION ${RUBY_LIB_INSTALL_DIR} COMPONENT ruby-elektra) - install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/kdb.rb ${CMAKE_CURRENT_SOURCE_DIR}/kdbtools.rb DESTINATION ${RUBY_MODULE_INSTALL_DIR} COMPONENT ruby-elektra) + install ( + FILES ${CMAKE_CURRENT_SOURCE_DIR}/kdb.rb ${CMAKE_CURRENT_SOURCE_DIR}/kdbtools.rb + DESTINATION ${RUBY_MODULE_INSTALL_DIR} + COMPONENT ruby-elektra) include_directories (${CMAKE_CURRENT_SOURCE_DIR}) if (BUILD_TESTING) diff --git a/src/plugins/gitresolver/CMakeLists.txt b/src/plugins/gitresolver/CMakeLists.txt index 7cc3e57d1ec..1dd6fd8118b 100644 --- a/src/plugins/gitresolver/CMakeLists.txt +++ b/src/plugins/gitresolver/CMakeLists.txt @@ -19,5 +19,4 @@ add_plugin ( SOURCES gitresolver.h gitresolver.c LINK_ELEKTRA elektra-invoke INCLUDE_SYSTEM_DIRECTORIES ${GITRESOLVER_INCLUDE_DIRS} - LINK_LIBRARIES ${GITRESOLVER_LIBRARY_DIRS} - COMPONENT libelektra${SO_VERSION}-gitresolver) + LINK_LIBRARIES ${GITRESOLVER_LIBRARY_DIRS} COMPONENT libelektra${SO_VERSION}-gitresolver) diff --git a/src/plugins/ruby/CMakeLists.txt b/src/plugins/ruby/CMakeLists.txt index ef1f0760fa0..8865ec1676a 100644 --- a/src/plugins/ruby/CMakeLists.txt +++ b/src/plugins/ruby/CMakeLists.txt @@ -67,8 +67,7 @@ add_plugin ( SOURCES ruby.hpp ruby.cpp ${CMAKE_CURRENT_BINARY_DIR}/runtime.h INCLUDE_SYSTEM_DIRECTORIES ${RUBY_INCLUDE_DIRS} LINK_LIBRARIES ${RUBY_LIBRARY} - COMPILE_DEFINITIONS SWIG_TYPE_TABLE=kdb SWIG_RUNTIME=\"runtime.h\" - COMPONENT libelektra${SO_VERSION}-ruby) + COMPILE_DEFINITIONS SWIG_TYPE_TABLE=kdb SWIG_RUNTIME=\"runtime.h\" COMPONENT libelektra${SO_VERSION}-ruby) if (ADDTESTING_PHASE) # bindings are required for tests