You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Regards,
Niels.
The text was updated successfully, but these errors were encountered:
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})
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.
Regards,
Niels.
The text was updated successfully, but these errors were encountered: