[angelscript] fix build dependency error (#31711)

* [angelscript] fix build dependency errors

* update version

* update portfile.cmake

* update version

---------

Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
This commit is contained in:
JonLiu1993 2023-05-31 11:55:10 -07:00 committed by GitHub
parent 8b10402c57
commit 7aed17856b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,9 @@
diff --git a/angelscript/projects/cmake/cmake/AngelscriptConfig.cmake b/angelscript/projects/cmake/cmake/AngelscriptConfig.cmake
index 4d1ef0f..ec14fe9 100644
--- a/angelscript/projects/cmake/cmake/AngelscriptConfig.cmake
+++ b/angelscript/projects/cmake/cmake/AngelscriptConfig.cmake
@@ -1,2 +1,4 @@
include("${CMAKE_CURRENT_LIST_DIR}/AngelscriptTargets.cmake")
+include(CMakeFindDependencyMacro)
+find_dependency(Threads REQUIRED)

View File

@ -9,6 +9,7 @@ vcpkg_extract_source_archive(
ARCHIVE "${ARCHIVE}"
PATCHES
mark-threads-private.patch
fix-dependency.patch
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,7 @@
{
"name": "angelscript",
"version": "2.36.1",
"port-version": 1,
"description": "The AngelCode Scripting Library, or AngelScript as it is also known, is an extremely flexible cross-platform scripting library designed to allow applications to extend their functionality through external scripts. It has been designed from the beginning to be an easy to use component, both for the application programmer and the script writer.",
"homepage": "https://angelcode.com/angelscript",
"license": "Zlib",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5c1bc126371829227e923c11f029a539a234a483",
"version": "2.36.1",
"port-version": 1
},
{
"git-tree": "e90e0fe54ab8038226b849471fba169157753c19",
"version": "2.36.1",

View File

@ -118,7 +118,7 @@
},
"angelscript": {
"baseline": "2.36.1",
"port-version": 0
"port-version": 1
},
"angle": {
"baseline": "chromium_5414",