Skip to content

Commit

Permalink
Merge pull request nanopb#236 from wak-google/fix-lib
Browse files Browse the repository at this point in the history
cmake: Fix library name
  • Loading branch information
PetteriAimonen authored Jan 18, 2017
2 parents a3a7df3 + cff94b8 commit 307c126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}>
)

Expand All @@ -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
Expand Down

0 comments on commit 307c126

Please sign in to comment.