Skip to content

Commit 917bcc4

Browse files
committed
Find ghc::filesystem's include directory
2>------ Build started: Project: xtensor-zarr-gdal, Configuration: RelWithDebInfo x64 ------ 2>xtensor-zarr-gdal.cpp 2>C:\Libs\xtensor-io\include\xtensor-io/xchunk_store_manager.hpp(7,10): fatal error C1083: Cannot open include file: 'ghc/filesystem.hpp': No such file or directory 2>Done building project "xtensor-zarr-gdal.vcxproj" -- FAILED.
1 parent d0fbaf6 commit 917bcc4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,16 @@ add_library(xtensor-io INTERFACE)
124124

125125
include_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+
127137
target_include_directories(xtensor-io
128138
INTERFACE
129139
$<BUILD_INTERFACE:${XTENSOR_IO_INCLUDE_DIR}>

0 commit comments

Comments
 (0)