aboutsummaryrefslogtreecommitdiffhomepage
path: root/demos
diff options
context:
space:
mode:
authorGravatar Hans Johnson <hans.j.johnson@gmail.com>2019-10-31 11:36:27 -0500
committerGravatar Hans Johnson <hans.j.johnson@gmail.com>2019-10-31 11:36:27 -0500
commit6fb3e5f1767855bc1a8aa3c868bc7fbf0eeb67ef (patch)
treeee5db623e6eb11561a60f9abf0f6d0696c950360 /demos
parentf1e83073082f2733eec6235f2fdf251217a54ade (diff)
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.
Diffstat (limited to 'demos')
-rw-r--r--demos/CMakeLists.txt4
-rw-r--r--demos/mandelbrot/CMakeLists.txt2
2 files changed, 3 insertions, 3 deletions
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} )