From 048d760168046b5141750f211e9f2d47b3375492 Mon Sep 17 00:00:00 2001 From: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Date: Sat, 21 Nov 2020 04:25:16 +0800 Subject: [hunspell] Avoid automatically added lib prefix (#14623) * [hunspell] Avoid automatically added lib prefix * Update port version * Update CMakeLists.txt --- ports/hunspell/CMakeLists.txt | 4 ++++ ports/hunspell/CONTROL | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ports/hunspell/CMakeLists.txt b/ports/hunspell/CMakeLists.txt index 810c894f7..dd3715a10 100644 --- a/ports/hunspell/CMakeLists.txt +++ b/ports/hunspell/CMakeLists.txt @@ -60,6 +60,10 @@ set(LIBHUNSPELL_HDRS #hunspell/libhunspell add_library(libhunspell ${LIBHUNSPELL_HDRS} ${LIBHUNSPELL_SRCS}) + +#Avoid automatically added lib prefix 'lib' for hunspell +set_target_properties(libhunspell PROPERTIES PREFIX "") + target_compile_definitions(libhunspell PRIVATE -DBUILDING_LIBHUNSPELL) install(TARGETS libhunspell ARCHIVE DESTINATION lib diff --git a/ports/hunspell/CONTROL b/ports/hunspell/CONTROL index 967cc32c5..229d5ca93 100644 --- a/ports/hunspell/CONTROL +++ b/ports/hunspell/CONTROL @@ -1,5 +1,6 @@ Source: hunspell -Version: 1.7.0-1 +Version: 1.7.0 +Port-Version: 2 Homepage: https://github.com/hunspell/hunspell Description: The most popular spellchecking library. -- cgit v1.2.3