File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,6 +124,16 @@ add_library(xtensor-io INTERFACE)
124124
125125include_directories (${GTEST_INCLUDE_DIRS} )
126126
127+ find_path (ghc-filesystem-include REQUIRED
128+ NAMES "ghc/filesystem.hpp"
129+ DOC "Path to include directory of https://github.com/gulrak/filesystem"
130+ )
131+ target_include_directories (xtensor-io
132+ INTERFACE
133+ $<BUILD_INTERFACE :${ghc-filesystem-include} >
134+ $<INSTALL_INTERFACE :include >
135+ )
136+
127137target_include_directories (xtensor-io
128138 INTERFACE
129139 $<BUILD_INTERFACE :${XTENSOR_IO_INCLUDE_DIR} >
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ namespace xt
6262 {
6363 if (!fs::is_directory (directory))
6464 {
65- XTENSOR_THROW (std::runtime_error, " Path is not a directory: " + std::string (directory));
65+ XTENSOR_THROW (std::runtime_error, " Path is not a directory: " + std::string (directory. string () ));
6666 }
6767 }
6868 else
Original file line number Diff line number Diff line change 1919include (CMakeFindDependencyMacro )
2020find_dependency (xtensor @xtensor_REQUIRED_VERSION@ )
2121
22- set (PN xtensor_io)
23- set_and_check (${PN} _INCLUDE_DIRS "${PACKAGE_PREFIX_DIR} /@CMAKE_INSTALL_INCLUDEDIR@" )
24- set (${PN} _LIBRARY "" )
25- check_required_components (${PN} )
26-
2722if (NOT TARGET @PROJECT_NAME @)
2823 include ("${CMAKE_CURRENT_LIST_DIR } /@PROJECT_NAME@Targets.cmake" )
2924endif ()
You can’t perform that action at this time.
0 commit comments