summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@github.mail.kapsi.fi>2017-01-18 09:00:38 +0200
committerGitHub <noreply@github.com>2017-01-18 09:00:38 +0200
commit307c12673a4ba43e205c815c7df01586334661b6 (patch)
tree0df01f7a6a6052c41f3ef01a99bd1fc7f64bfeed
parenta3a7df33919f1f45067c4f6546dd31343d5bacb1 (diff)
parentcff94b8f6669a16ee6a809932714d793b322e11b (diff)
Merge pull request #236 from wak-google/fix-lib
cmake: Fix library name
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
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
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
@@ -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