## ----------------------------------------------------------------------------- ## ## SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later ## Copyright (C) 2020 - 2022 by the deal.II authors ## ## This file is part of the deal.II library. ## ## Detailed license information governing the source code and contributions ## can be found in LICENSE.md and CONTRIBUTING.md at the top level directory. ## ## ----------------------------------------------------------------------------- # # Try to find the Taskflow library # # This module exports # # TASKFLOW_INCLUDE_DIRS # TASKFLOW_VERSION # set(TASKFLOW_DIR "" CACHE PATH "An optional hint to a Taskflow installation") set_if_empty(TASKFLOW_DIR "$ENV{TASKFLOW_DIR}") find_package(TASKFLOW_CONFIG CONFIG QUIET NAMES Taskflow HINTS ${TASKFLOW_DIR}/lib/cmake/Taskflow ${TASKFLOW_DIR} PATH_SUFFIXES lib64/cmake/Taskflow lib/cmake/Taskflow lib${LIB_SUFFIX}/cmake/Taskflow NO_SYSTEM_ENVIRONMENT_PATH ) set(TASKFLOW_INCLUDE_DIR ${Taskflow_INCLUDE_DIR}) # # Extract version numbers: # set(TASKFLOW_VERSION "${TASKFLOW_CONFIG_VERSION}") string(REGEX REPLACE "^([0-9]+).*$" "\\1" TASKFLOW_VERSION_MAJOR "${TASKFLOW_CONFIG_VERSION}") string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*$" "\\1" TASKFLOW_VERSION_MINOR "${TASKFLOW_CONFIG_VERSION}") process_feature(TASKFLOW INCLUDE_DIRS REQUIRED TASKFLOW_INCLUDE_DIR CLEAR TASKFLOW_CONFIG_DIR )