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
Right now the libconfig project cannot be added as a sub-project in a larger cmake codebase. The problem is that the header files are not automatically found during the build phase. Please support this by adding something along the lines of:
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index e0d4730..c05eaf1 100644
--- a/lib/CMakeLists.txt+++ b/lib/CMakeLists.txt@@ -82,10 +82,12 @@ endif()
target_include_directories(${libname}
PUBLIC "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>"
)
target_include_directories(${libname}++
PUBLIC "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>"
)
install(TARGETS ${libname}
The text was updated successfully, but these errors were encountered:
Right now the
libconfig
project cannot be added as a sub-project in a largercmake
codebase. The problem is that the header files are not automatically found during the build phase. Please support this by adding something along the lines of:The text was updated successfully, but these errors were encountered: