[enkiTS] Fixing patch for dynamic linking on windows (#38014)

When enkiTS was built on windows with dynamic linking it would fail to
install the dll. A dependent application would successfully link against
the stub .lib and then fail to even get to `main` because the enkiTS dll
was missing.

I made sure to test this locally by having a project of mine depend on
the version of this port from my fork :)

- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [X] SHA512s are updated for each updated download.
- [X] The "supports" clause reflects platforms that may be fixed by this
new version.
- [X] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [X] Any patches that are no longer applied are deleted from the port's
directory.
- [X] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [X] Only one version is added to each modified port's versions file.
This commit is contained in:
Ada Tufankjian 2024-04-09 09:07:03 -07:00 committed by GitHub
parent 2fe92f4d1f
commit 95937528f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 3 deletions

View File

@ -11,7 +11,7 @@ index 7f8572e..f42ec18 100644
option( ENKITS_BUILD_C_INTERFACE "Build C interface" ON )
option( ENKITS_BUILD_EXAMPLES "Build example applications" ON )
option( ENKITS_BUILD_SHARED "Build shared library" OFF )
@@ -59,9 +61,17 @@ if( UNIX )
@@ -59,9 +63,19 @@ if( UNIX )
target_link_libraries( enkiTS ${CMAKE_THREAD_LIBS_INIT} )
endif()
@ -22,6 +22,8 @@ index 7f8572e..f42ec18 100644
+ install(
+ TARGETS enkiTS
+ EXPORT enkiTS-config
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ install(FILES ${ENKITS_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+ install(

View File

@ -1,7 +1,7 @@
{
"name": "enkits",
"version": "1.11",
"port-version": 1,
"port-version": 2,
"description": "A permissively licensed C and C++ Task Scheduler for creating parallel programs.",
"homepage": "https://github.com/dougbinks/enkiTS",
"license": "Zlib",

View File

@ -2498,7 +2498,7 @@
},
"enkits": {
"baseline": "1.11",
"port-version": 1
"port-version": 2
},
"ensmallen": {
"baseline": "2.19.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8fc05799f3650a3e68dda59c7d6c813e5e49408e",
"version": "1.11",
"port-version": 2
},
{
"git-tree": "d83be5a37b104f4c67030a8184af78bfa248137c",
"version": "1.11",