Closed meldavis closed 6 years ago
The CMakeLists.txt sets the target_include_directories to an uninitialized variable.
target_include_directories
https://github.com/martinmoene/span-lite/blob/c85c2fdb246b3654e0efea027243ceba8103ff71/CMakeLists.txt#L24-L25
Should be:
target_include-directories( ${package_name} INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>")
Thanks @meldavis . For now, I'll add
set( include_source_dir "${PROJECT_SOURCE_DIR}/include" )
This may lateron be followed with a CMake package definition, like the one of gsl-lite.
The CMakeLists.txt sets the
target_include_directories
to an uninitialized variable.https://github.com/martinmoene/span-lite/blob/c85c2fdb246b3654e0efea027243ceba8103ff71/CMakeLists.txt#L24-L25
Should be: