Skip to content
Prev Previous commit
Next Next commit
Apply suggestions from code review - remove check for xtl
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
  • Loading branch information
kkiesling and paulromano authored Mar 17, 2022
commit 2ab0e23bc6efe37a62d10d9ba1140e608ef1b686
11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})")
Expand Down Expand Up @@ -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()

Expand Down