From 114f0a7fcfd676ea8fad1ef714429ffed5e3943c Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Fri, 17 Oct 2014 15:54:24 +0200 Subject: [PATCH] Added CMake version check when custom VTK edition is built. --- scripts/cmake/ExternalProjectCatalyst.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/cmake/ExternalProjectCatalyst.cmake b/scripts/cmake/ExternalProjectCatalyst.cmake index 7f37f27cc9c..aca692562d7 100644 --- a/scripts/cmake/ExternalProjectCatalyst.cmake +++ b/scripts/cmake/ExternalProjectCatalyst.cmake @@ -96,6 +96,9 @@ ELSE() ENDIF() MESSAGE(STATUS "Building ParaView as an external project in the build directory") +IF(CMAKE_VERSION VERSION_LESS 3.0.0) + MESSAGE(FATAL_ERROR "CMake 3.0.0 or higher is required for building VTK / ParaView!") +ENDIF() ExternalProject_Add(Catalyst PREFIX ${CMAKE_BINARY_DIR}/External/catalyst GIT_REPOSITORY ${CATALYST_GIT_URL} -- GitLab