Skip to content

Commit 6ebb29b

Browse files
committed
Allow the library to be used from build directory
The error was: CMake Error at C:/Libs/xtl-vs19/xtlConfig.cmake:26 (message): File or directory C://include referenced by variable xtensor_zarr_INCLUDE_DIRS does not exist ! Call Stack (most recent call first): C:/Libs/xtensor-zarr-vs19/xtensor-zarrConfig.cmake:49 (set_and_check) CMakeLists.txt:6 (find_package)
1 parent 445945d commit 6ebb29b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

xtensor-zarrConfig.cmake.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ find_dependency(xtensor-io @xtensor_io_REQUIRED_VERSION@)
2121
find_dependency(zarray @zarray_REQUIRED_VERSION@)
2222
find_dependency(nlohmann_json @nlohmann_json_REQUIRED_VERSION@)
2323

24-
set(PN xtensor_zarr)
25-
set_and_check(${PN}_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@")
26-
set(${PN}_LIBRARY "")
27-
check_required_components(${PN})
2824

2925
if(NOT TARGET @PROJECT_NAME@)
3026
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")

0 commit comments

Comments
 (0)