From 16a23d1694f593488953645e4b9b66ad24500c52 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 4 Feb 2017 14:48:33 +0100 Subject: [PATCH] disable Path module on Win32 if cmake version is less than 3.4.3 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b86cc823..bae612181 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -262,6 +262,12 @@ if(BUILD_FEM) set(BUILD_SMESH ON) endif() +# for Windows the minimum required cmake version is 3.4.3 to build the Path module +if(WIN32 AND CMAKE_VERSION VERSION_LESS 3.4.3) + message(WARNING "Disable Path, requires cmake >= 3.4.3 in order to build this module") + set(BUILD_PATH OFF) +endif() + # ============================================================================== #inter-module dependencies