aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLRFLEW <LRFLEW@aol.com>2020-11-25 13:25:02 -0600
committerGitHub <noreply@github.com>2020-11-25 11:25:02 -0800
commitb6524c83639b6b2621d6c81dcc9e9fe1bde2dfe9 (patch)
tree60f1115e7bf8f73a8bc6909e3b58496082828fe4
parent385a4607c6c691f4f6a9c2ed103b493ebf157e66 (diff)
downloadvcpkg-b6524c83639b6b2621d6c81dcc9e9fe1bde2dfe9.tar.gz
vcpkg-b6524c83639b6b2621d6c81dcc9e9fe1bde2dfe9.zip
[duktape] Add VERSION and SOVERSION properties CMake build (#14666)
-rw-r--r--ports/duktape/CMakeLists.txt2
-rw-r--r--ports/duktape/CONTROL1
2 files changed, 3 insertions, 0 deletions
diff --git a/ports/duktape/CMakeLists.txt b/ports/duktape/CMakeLists.txt
index 56303d3d9..746aaa910 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 907618c35..dd0e86447 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.