diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ce33555e1..21bc48d39e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -316,7 +316,7 @@ if(NOT TARGET nonstd::span-lite) URI https://github.com/martinmoene/span-lite REF "ccf2351" ) - add_subdirectory(${span-lite_SOURCE_DIR} EXCLUDE_FROM_ALL) + add_subdirectory(${span-lite_SOURCE_DIR} ${span-lite_BINARY_DIR} EXCLUDE_FROM_ALL) get_property(span_include_dir TARGET span-lite PROPERTY INTERFACE_INCLUDE_DIRECTORIES)