From: William A. Kennington III Date: Tue, 17 Jan 2017 20:58:48 +0000 (-0800) Subject: cmake: Fix library name X-Git-Tag: 5.0.2~186^2~30^2~2^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=cff94b8f6669a16ee6a809932714d793b322e11b;p=apps%2Fagl-service-can-low-level.git cmake: Fix library name The produced static library should be `libprotobuf-nanopb.a` instead of the current `liblibprotobuf-nanopb.a`. Signed-off-by: William A. Kennington III --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7889bf4a..bb236a98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ if(MSVC AND nanopb_MSVC_STATIC_RUNTIME) endforeach(flag_var) endif() -add_library(libprotobuf-nanopb STATIC +add_library(protobuf-nanopb STATIC pb.h pb_common.h pb_common.c @@ -31,7 +31,7 @@ add_library(libprotobuf-nanopb STATIC pb_decode.h pb_decode.c) -target_include_directories(libprotobuf-nanopb INTERFACE +target_include_directories(protobuf-nanopb INTERFACE $ ) @@ -41,7 +41,7 @@ if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR) set(CMAKE_INSTALL_CMAKEDIR "lib/cmake/nanopb") endif() -install(TARGETS libprotobuf-nanopb EXPORT nanopb-targets +install(TARGETS protobuf-nanopb EXPORT nanopb-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(EXPORT nanopb-targets