From ab5b7155af2fccbbc725d67aed2ba585b1213433 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Thu, 6 Feb 2020 17:01:26 +0100 Subject: [PATCH] CMake - remove parameter repetition in else() and endif() statements Fix leftovers after the maint branch merge --- CMakeLists.txt | 2 +- bindings/guile/CMakeLists.txt | 2 +- bindings/guile/test/CMakeLists.txt | 4 ++-- gnucash/report/test/CMakeLists.txt | 2 +- libgnucash/core-utils/CMakeLists.txt | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 28bc04584a..e11c233b4f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -526,7 +526,7 @@ else() endif() if (NOT HAVE_BOOST) message (SEND_ERROR "A suitable Boost is not installed, and is required. GnuCash requires that Boost be compatible and compiled with C++17. Boost 1.67 is the first compatible release but some distributions have patched earlier ones to work with C++17. Please install it and ensure that the following libraries are built: date_time, filesystem, locale, and regex.") -endif () +endif() # Compiler flags diff --git a/bindings/guile/CMakeLists.txt b/bindings/guile/CMakeLists.txt index 0dca2e6808..dcb0b7872f 100644 --- a/bindings/guile/CMakeLists.txt +++ b/bindings/guile/CMakeLists.txt @@ -96,7 +96,7 @@ set (engine_SCHEME_2 set(BACKEND_DEPENDS gncmod-backend-xml) if (WITH_SQL) list(APPEND BACKEND_DEPENDS gncmod-backend-dbi) -endif(WITH_SQL) +endif() set(GUILE_DEPENDS ${BACKEND_DEPENDS} diff --git a/bindings/guile/test/CMakeLists.txt b/bindings/guile/test/CMakeLists.txt index 41485785bb..45e77bfbde 100644 --- a/bindings/guile/test/CMakeLists.txt +++ b/bindings/guile/test/CMakeLists.txt @@ -82,7 +82,7 @@ if (HAVE_SRFI64) gnc_add_scheme_tests("${scm_tests_with_srfi64_SOURCES}") add_dependencies(check scm-srfi64-extras) -endif (HAVE_SRFI64) +endif() set(test_scm_SCHEME @@ -109,7 +109,7 @@ if (HAVE_SRFI64) gnc_add_scheme_tests("${test_scm_SCHEME}") -endif (HAVE_SRFI64) +endif() set(test_engine_SCHEME_DIST srfi64-extras.scm diff --git a/gnucash/report/test/CMakeLists.txt b/gnucash/report/test/CMakeLists.txt index f26142bc6d..27fbdea0b7 100644 --- a/gnucash/report/test/CMakeLists.txt +++ b/gnucash/report/test/CMakeLists.txt @@ -46,7 +46,7 @@ if (HAVE_SRFI64) ) gnc_add_scheme_tests ("${scm_test_report_with_srfi64_SOURCES}") -endif (HAVE_SRFI64) +endif() gnc_add_scheme_test_targets(scm-test-report "test-report-extras.scm" diff --git a/libgnucash/core-utils/CMakeLists.txt b/libgnucash/core-utils/CMakeLists.txt index 7461b0729d..d2ceff6a9e 100644 --- a/libgnucash/core-utils/CMakeLists.txt +++ b/libgnucash/core-utils/CMakeLists.txt @@ -113,9 +113,9 @@ add_custom_target(gnc-vcs-info ALL -D SHELL="${SHELL}" -P ${CMAKE_SOURCE_DIR}/cmake/git2version-info.cmake ) -else(BUILDING_FROM_VCS) +else() add_custom_target(gnc-vcs-info DEPENDS ${VCS_INFO_FILE}) -endif(BUILDING_FROM_VCS) +endif() dist_add_generated (${BUILDING_FROM_VCS} gnc-vcs-info.h) # Dist files