From e72fa01073572cc5b84fc767689971efe1cde2e5 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Tue, 11 Jan 2022 14:58:40 +0100 Subject: [PATCH] Fix libavrdude library file name CMake adds "lib" prefix to the library name and hence we get the following name "liblibavrdude". Use set_target_properties to set the prefix to "". --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ca1cb350..3dfd6778 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -586,6 +586,8 @@ add_library(libavrdude ${BISON_Parser_OUTPUTS} ) +set_target_properties(libavrdude PROPERTIES PREFIX "") + target_include_directories(libavrdude PUBLIC "${PROJECT_SOURCE_DIR}"