From 6fb3e5f1767855bc1a8aa3c868bc7fbf0eeb67ef Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Thu, 31 Oct 2019 11:36:27 -0500 Subject: STYLE: Remove CMake-language block-end command arguments Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. --- demos/CMakeLists.txt | 4 ++-- demos/mandelbrot/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'demos') diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt index b0d2eddbb..deb560f09 100644 --- a/demos/CMakeLists.txt +++ b/demos/CMakeLists.txt @@ -7,7 +7,7 @@ if(NOT EIGEN_TEST_NOQT) if(QT4_FOUND) add_subdirectory(mandelbrot) add_subdirectory(opengl) - else(QT4_FOUND) + else() message(STATUS "Qt4 not found, so disabling the mandelbrot and opengl demos") - endif(QT4_FOUND) + endif() endif() diff --git a/demos/mandelbrot/CMakeLists.txt b/demos/mandelbrot/CMakeLists.txt index 5c500e064..ae6001dbc 100644 --- a/demos/mandelbrot/CMakeLists.txt +++ b/demos/mandelbrot/CMakeLists.txt @@ -5,7 +5,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) if (CMAKE_COMPILER_IS_GNUCXX) set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2") add_definitions ( "-DNDEBUG" ) -endif (CMAKE_COMPILER_IS_GNUCXX) +endif () include_directories( ${QT_INCLUDE_DIR} ) -- cgit v1.2.3