From b6524c83639b6b2621d6c81dcc9e9fe1bde2dfe9 Mon Sep 17 00:00:00 2001 From: LRFLEW Date: Wed, 25 Nov 2020 13:25:02 -0600 Subject: [PATCH] [duktape] Add VERSION and SOVERSION properties CMake build (#14666) --- ports/duktape/CMakeLists.txt | 2 ++ ports/duktape/CONTROL | 1 + 2 files changed, 3 insertions(+) diff --git a/ports/duktape/CMakeLists.txt b/ports/duktape/CMakeLists.txt index 56303d3d96..746aaa910b 100644 --- a/ports/duktape/CMakeLists.txt +++ b/ports/duktape/CMakeLists.txt @@ -17,6 +17,8 @@ file(GLOB_RECURSE DUKTAPE_HEADERS "${CMAKE_CURRENT_LIST_DIR}/src/*.h") add_library(duktape ${DUKTAPE_SOURCES} ${DUKTAPE_HEADERS}) target_include_directories(duktape PRIVATE "${CMAKE_CURRENT_LIST_DIR}/src") set_target_properties(duktape PROPERTIES PUBLIC_HEADER "${DUKTAPE_HEADERS}") +set_target_properties(duktape PROPERTIES VERSION ${duktape_VERSION}) +set_target_properties(duktape PROPERTIES SOVERSION ${duktape_MAJOR_VERSION}) if (BUILD_SHARED_LIBS) target_compile_definitions(duktape PRIVATE -DDUK_F_DLL_BUILD) diff --git a/ports/duktape/CONTROL b/ports/duktape/CONTROL index 907618c35d..dd0e86447c 100644 --- a/ports/duktape/CONTROL +++ b/ports/duktape/CONTROL @@ -1,4 +1,5 @@ Source: duktape Version: 2.5.0 +Port-Version: 1 Homepage: https://github.com/svaarala/duktape Description: Embeddable Javascript engine with a focus on portability and compact footprint.