forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[deps/libssh2]: fix import library name (JuliaLang#45914)
* deps: apply `libssh2-fix-import-lib-name.patch` * deps/libssh2: fix apply patch target name Co-Authored-By: Jameson Nash <[email protected]> Co-authored-by: Jameson Nash <[email protected]> Co-authored-by: Viral B. Shah <[email protected]>
- Loading branch information
1 parent
40c3645
commit d8ffddd
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 3732420725efbf410df5863b91a09ca214ee18ba Mon Sep 17 00:00:00 2001 | ||
From: "Y. Yang" <[email protected]> | ||
Date: Thu, 16 Jun 2022 19:16:37 +0800 | ||
Subject: [PATCH] Fix DLL import library name | ||
|
||
https://aur.archlinux.org/packages/mingw-w64-libssh2 | ||
https://cmake.org/cmake/help/latest/prop_tgt/IMPORT_PREFIX.html | ||
--- | ||
src/CMakeLists.txt | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index cb8fee1..17ecefd 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -220,6 +220,7 @@ endif() | ||
add_library(libssh2 ${SOURCES}) | ||
# we want it to be called libssh2 on all platforms | ||
set_target_properties(libssh2 PROPERTIES PREFIX "") | ||
+set_target_properties(libssh2 PROPERTIES IMPORT_PREFIX "") | ||
|
||
target_compile_definitions(libssh2 PRIVATE ${PRIVATE_COMPILE_DEFINITIONS}) | ||
target_include_directories(libssh2 | ||
-- | ||
2.36.1 | ||
|