Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows build error: failed to run custom build command for openssl-sys v0.9.75 #178

Open
calvin2021y opened this issue Sep 22, 2024 · 1 comment
Assignees

Comments

@calvin2021y
Copy link

try build with -DCASS_USE_OPENSSL=OFF for windows: failed to run custom build command for openssl-sys v0.9.75

@calvin2021y
Copy link
Author

build with patch:

diff --git a/cmake/CMakeCargo.cmake b/cmake/CMakeCargo.cmake
index e42faf7..3d21f23 100644
--- a/cmake/CMakeCargo.cmake
+++ b/cmake/CMakeCargo.cmake
@@ -6,9 +6,9 @@ function(cargo_build)
 
     if(WIN32)
         if(CMAKE_SIZEOF_VOID_P EQUAL 8)
-            set(LIB_TARGET "x86_64-pc-windows-msvc")
+            set(LIB_TARGET "x86_64-pc-windows-gnu")
         else()
-            set(LIB_TARGET "i686-pc-windows-msvc")
+            set(LIB_TARGET "i686-pc-windows-gnu")
         endif()
        elseif(ANDROID)
         if(ANDROID_SYSROOT_ABI STREQUAL "x86")

add -DCASS_USE_OPENSSL=OFF can not disable rust openssl-sys v0.9.75.

how I can bypass this error ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants