From aee031f08f1c76a7630cdc73d027e3a63df442c1 Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Wed, 29 Jul 2015 11:24:53 +0000
Subject: [PATCH] [cmake] use empty parantheses after endif according to
 current style conventions

Reviewed by gruenich.



git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@15185 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 cmake/modules/CopyOfDuneSymlinkOrCopy.cmake | 2 +-
 cmake/modules/DumuxTestMacros.cmake         | 2 +-
 test/decoupled/2p/CMakeLists.txt            | 2 +-
 test/geomechanics/el2p/CMakeLists.txt       | 2 +-
 test/implicit/2p/CMakeLists.txt             | 4 ++--
 test/implicit/richards/CMakeLists.txt       | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/cmake/modules/CopyOfDuneSymlinkOrCopy.cmake b/cmake/modules/CopyOfDuneSymlinkOrCopy.cmake
index 007ece3f7a..a81339af41 100644
--- a/cmake/modules/CopyOfDuneSymlinkOrCopy.cmake
+++ b/cmake/modules/CopyOfDuneSymlinkOrCopy.cmake
@@ -88,7 +88,7 @@ function(dune_symlink_to_source_tree)
       get_filename_component(dir ${f} DIRECTORY)
       if(NOT "${CMAKE_SOURCE_DIR}/${dir}" MATCHES "${CMAKE_BINARY_DIR}/*")
         execute_process(COMMAND ${CMAKE_COMMAND} "-E" "create_symlink" "${CMAKE_SOURCE_DIR}/${dir}" "${CMAKE_BINARY_DIR}/${dir}/${ARG_NAME}")
-      endif(NOT "${CMAKE_SOURCE_DIR}/${dir}" MATCHES "${CMAKE_BINARY_DIR}/*")
+      endif()
     endforeach()
   endif()
 endfunction(dune_symlink_to_source_tree)
diff --git a/cmake/modules/DumuxTestMacros.cmake b/cmake/modules/DumuxTestMacros.cmake
index f80a47cb82..03f64c19dc 100644
--- a/cmake/modules/DumuxTestMacros.cmake
+++ b/cmake/modules/DumuxTestMacros.cmake
@@ -33,7 +33,7 @@ macro(add_dumux_test dumux_test dumux_test_executable dumux_test_executable_sour
   # check whether executable already exists
   if(NOT TARGET ${dumux_test_executable})
     add_executable(${dumux_test_executable} ${dumux_test_executable_source})
-  endif(NOT TARGET ${dumux_test_executable})
+  endif()
 
   # link all libraries to executable, add all flags
   add_dumux_all_flags(${dumux_test_executable})
diff --git a/test/decoupled/2p/CMakeLists.txt b/test/decoupled/2p/CMakeLists.txt
index f15ac96e41..da571faf38 100644
--- a/test/decoupled/2p/CMakeLists.txt
+++ b/test/decoupled/2p/CMakeLists.txt
@@ -28,7 +28,7 @@ else()
                    --files ${CMAKE_SOURCE_DIR}/test/references/test_impes-reference.vtu
                            ${CMAKE_CURRENT_BINARY_DIR}/test_impeswithamg-00009.vtu
                    --command "${CMAKE_CURRENT_BINARY_DIR}/test_impeswithamg")
-endif(MPI_FOUND)
+endif()
 
 add_dumux_test(test_transport test_transport test_transport.cc
                python ${CMAKE_SOURCE_DIR}/bin/runtest.py
diff --git a/test/geomechanics/el2p/CMakeLists.txt b/test/geomechanics/el2p/CMakeLists.txt
index b09216c558..c5be776cba 100644
--- a/test/geomechanics/el2p/CMakeLists.txt
+++ b/test/geomechanics/el2p/CMakeLists.txt
@@ -14,4 +14,4 @@ if(MPI_FOUND)
                    --files ${CMAKE_SOURCE_DIR}/test/references/el2p-parallel-reference.vtu
                            ${CMAKE_CURRENT_BINARY_DIR}/s0004-p0001-el2p-00003.vtu
                    --command "${MPIEXEC} -np 4 ${CMAKE_CURRENT_BINARY_DIR}/test_el2p_parallel ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_el2p.dgf 100 200 100")
-endif(MPI_FOUND)
+endif()
diff --git a/test/implicit/2p/CMakeLists.txt b/test/implicit/2p/CMakeLists.txt
index 43bf37384d..ce7653a79e 100644
--- a/test/implicit/2p/CMakeLists.txt
+++ b/test/implicit/2p/CMakeLists.txt
@@ -60,7 +60,7 @@ add_dumux_test(test_box2pni test_box2pni test_box2pni.cc
                  --files ${CMAKE_SOURCE_DIR}/test/references/injection2pnibox-cube-reference.vtu
                          ${CMAKE_CURRENT_BINARY_DIR}/injection2pnibox-00008.vtu
                  --command "${CMAKE_CURRENT_BINARY_DIR}/test_box2pni")
-endif(HAVE_UG)
+endif()
 
 if(HAVE_UG)
 add_dumux_test(test_cc2pni test_cc2pni test_cc2pni.cc
@@ -76,4 +76,4 @@ add_dumux_test(test_cc2pni test_cc2pni test_cc2pni.cc
                  --files ${CMAKE_SOURCE_DIR}/test/references/injection2pnicc-cube-reference.vtu
                          ${CMAKE_CURRENT_BINARY_DIR}/injection2pnicc-00009.vtu
                  --command "${CMAKE_CURRENT_BINARY_DIR}/test_cc2pni")
-endif(HAVE_UG)
+endif()
diff --git a/test/implicit/richards/CMakeLists.txt b/test/implicit/richards/CMakeLists.txt
index a8de301c5e..0d4bbe12a5 100644
--- a/test/implicit/richards/CMakeLists.txt
+++ b/test/implicit/richards/CMakeLists.txt
@@ -15,7 +15,7 @@ else()
                    --files ${CMAKE_SOURCE_DIR}/test/references/richardslensbox-reference.vtu
                            ${CMAKE_CURRENT_BINARY_DIR}/richardslensbox-00008.vtu
                    --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxrichards")
-endif(MPI_CXX_FOUND)
+endif()
 
 add_dumux_test(test_ccrichards test_ccrichards test_ccrichards.cc
                python ${CMAKE_SOURCE_DIR}/bin/runtest.py
-- 
GitLab