2
0
mirror of https://github.com/mariusgreuel/avrdude.git synced 2025-09-27 14:35:27 +00:00

CMake: use CMAKE_CURRENT_BINARY_DIR to locate avrdude.conf

With the split CMakeLists.txt infrastructure avrdude.conf
will be created in the build/src and not build folder. Hence,
fix its location in the install command.
This commit is contained in:
Yegor Yefremov
2022-01-31 07:13:54 +01:00
parent e28e28d7c3
commit 7ed3632902

@@ -268,5 +268,5 @@ install(TARGETS libavrdude
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include COMPONENT dev
)
install(FILES "${PROJECT_BINARY_DIR}/avrdude.conf" TYPE SYSCONF)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/avrdude.conf" TYPE SYSCONF)
install(FILES avrdude.1 TYPE MAN)