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
1 changed files with 1 additions and 1 deletions

View File

@ -268,5 +268,5 @@ install(TARGETS libavrdude
ARCHIVE DESTINATION lib ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include COMPONENT dev 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) install(FILES avrdude.1 TYPE MAN)