From 7db19baabed74114b714881f862f603848d11974 Mon Sep 17 00:00:00 2001 From: Chip Kerchner Date: Thu, 16 Mar 2023 16:54:45 +0000 Subject: [PATCH] Remove pools if cmake is less than 3.11 --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 598e1dc8b..e5cba07fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -670,6 +670,13 @@ else (CMAKE_VERSION VERSION_LESS 3.14) ARCH_INDEPENDENT) endif (CMAKE_VERSION VERSION_LESS 3.14) +# Build and link pool requires CMake 3.11 +if (CMAKE_VERSION VERSION_LESS 3.11) + unset (CMAKE_JOB_POOL_COMPILE) + unset (CMAKE_JOB_POOL_LINK) + unset (CMAKE_JOB_POOLS) +endif (CMAKE_VERSION VERSION_LESS 3.11) + # The Eigen target will be located in the Eigen3 namespace. Other CMake # targets can refer to it using Eigen3::Eigen. export (TARGETS eigen NAMESPACE Eigen3:: FILE Eigen3Targets.cmake)