Remove pools if cmake is less than 3.11

This commit is contained in:
Chip Kerchner 2023-03-16 16:54:45 +00:00 committed by Antonio Sánchez
parent 0488b708b4
commit 7db19baabe

View File

@ -670,6 +670,13 @@ else (CMAKE_VERSION VERSION_LESS 3.14)
ARCH_INDEPENDENT) ARCH_INDEPENDENT)
endif (CMAKE_VERSION VERSION_LESS 3.14) 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 # The Eigen target will be located in the Eigen3 namespace. Other CMake
# targets can refer to it using Eigen3::Eigen. # targets can refer to it using Eigen3::Eigen.
export (TARGETS eigen NAMESPACE Eigen3:: FILE Eigen3Targets.cmake) export (TARGETS eigen NAMESPACE Eigen3:: FILE Eigen3Targets.cmake)