From 2ab21c0dd18528c5699970811a498cf35eabf92a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 27 Apr 2022 10:12:09 +0800 Subject: [PATCH] fix package-name-doesnt-match-sonames --- CMakeLists.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29ac814..a921caf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,15 +11,11 @@ if (${isBigEndian}) endif() IF(CMAKE_SIZEOF_VOID_P EQUAL 8) - add_library(b1464 STATIC base1464.c) - add_library(b14 SHARED base1464.c) - target_link_libraries(base16384 b1464) + add_library(base16384 SHARED base1464.c) ELSE() - add_library(b1432 STATIC base1432.c) - add_library(b14 SHARED base1432.c) - target_link_libraries(base16384 b1432) + add_library(base16384 SHARED base1432.c) ENDIF() INSTALL(TARGETS base16384 RUNTIME DESTINATION bin) -INSTALL(TARGETS b14 LIBRARY DESTINATION lib) -INSTALL(FILES base14.h DESTINATION include) \ No newline at end of file +INSTALL(TARGETS base16384 LIBRARY DESTINATION lib) +INSTALL(FILES base16384.h DESTINATION include)