Apply suggestions from code review - remove check for xtl

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Kalin Kiesling 2022-03-17 10:10:49 -05:00 committed by GitHub
parent a7ce3c92ca
commit 2ab0e23bc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()