When including cpp-peglib with the CPM package manager in a larger project, the top level project cannot find the include files because it points to the wrong location. This is easily fixed by changing the INTERFACE path of cpp-peglib in CMakeLists.txt from:
target_include_directories(peglib INTERFACE ${CMAKE_SOURCE_DIR})
to
target_include_directories(peglib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
This will most likely also help other package managers that do not install but include the source.
Thanks for making this awesome library!
When including cpp-peglib with the CPM package manager in a larger project, the top level project cannot find the include files because it points to the wrong location. This is easily fixed by changing the INTERFACE path of cpp-peglib in CMakeLists.txt from:
target_include_directories(peglib INTERFACE ${CMAKE_SOURCE_DIR})
totarget_include_directories(peglib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
This will most likely also help other package managers that do not install but include the source.
Regards, Niels.