We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f84952 commit 36f210eCopy full SHA for 36f210e
CMakeLists.txt
@@ -306,9 +306,14 @@ find_package(PCRE2 10.21 REQUIRED)
306
include_directories(${PCRE2_INCLUDE_DIRS})
307
target_link_libraries(yang ${PCRE2_LIBRARIES})
308
309
-# install files
+# generated header list
310
+foreach(h IN LISTS gen_headers)
311
+ list(APPEND g_headers ${PROJECT_BINARY_DIR}/${h})
312
+endforeach()
313
+
314
+# install all library files
315
install(TARGETS yang DESTINATION ${CMAKE_INSTALL_LIBDIR})
-install(FILES ${headers} ${CMAKE_CURRENT_BINARY_DIR}/${gen_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libyang)
316
+install(FILES ${headers} ${g_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libyang)
317
318
find_package(PkgConfig)
319
if(PKG_CONFIG_FOUND)
0 commit comments