Skip to content

Commit 8f84952

Browse files
committed
build BUGFIX install config header
1 parent 7c2648e commit 8f84952

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ set(headers
178178
src/tree_data.h
179179
src/tree_schema.h)
180180

181+
set(gen_headers
182+
src/version.h
183+
src/config.h)
184+
181185
# source files to be covered by the 'format' target
182186
set(format_sources
183187
compat/*
@@ -302,8 +306,9 @@ find_package(PCRE2 10.21 REQUIRED)
302306
include_directories(${PCRE2_INCLUDE_DIRS})
303307
target_link_libraries(yang ${PCRE2_LIBRARIES})
304308

309+
# install files
305310
install(TARGETS yang DESTINATION ${CMAKE_INSTALL_LIBDIR})
306-
install(FILES ${headers} ${PROJECT_BINARY_DIR}/src/version.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libyang)
311+
install(FILES ${headers} ${CMAKE_CURRENT_BINARY_DIR}/${gen_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libyang)
307312

308313
find_package(PkgConfig)
309314
if(PKG_CONFIG_FOUND)

0 commit comments

Comments
 (0)