From 2ab0e23bc6efe37a62d10d9ba1140e608ef1b686 Mon Sep 17 00:00:00 2001 From: Kalin Kiesling Date: Thu, 17 Mar 2022 10:10:49 -0500 Subject: [PATCH] Apply suggestions from code review - remove check for xtl Co-authored-by: Paul Romano --- CMakeLists.txt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d60861d36..151e8e5a9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,12 +77,6 @@ if(xtensor_FOUND) else() message(STATUS "Did not find xtensor, will use submodule instead") endif() -find_package(xtl QUIET NO_SYSTEM_ENVIRONMENT_PATH) -if(xtl_FOUND) - message(STATUS "Found xtl: ${xtl_DIR} (version ${xtl_VERSION})") -else() - message(STATUS "Did not find xtl, will use submodule instead") -endif() find_package(gsl-lite QUIET NO_SYSTEM_ENVIRONMENT_PATH) if(gsl-lite_FOUND) message(STATUS "Found gsl-lite: ${gsl-lite_DIR} (version ${gsl-lite_VERSION})") @@ -228,12 +222,9 @@ if (NOT (CMAKE_VERSION VERSION_LESS 3.13)) cmake_policy(SET CMP0079 NEW) endif() -if (NOT xtl_FOUND) +if (NOT xtensor_FOUND) add_subdirectory(vendor/xtl) set(xtl_DIR ${CMAKE_CURRENT_BINARY_DIR}/vendor/xtl) -endif() - -if (NOT xtensor_FOUND) add_subdirectory(vendor/xtensor) endif()