We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6a131 commit 7055824Copy full SHA for 7055824
cmake/FindHipoDeps.cmake
@@ -29,6 +29,17 @@ if (BUILD_OPENBLAS)
29
30
list(APPEND OPENBLAS_MINIMAL_FLAGS -DCMAKE_GENERATOR_PLATFORM=Win32)
31
32
+ # Crucial for static linking: Force OpenBLAS to use the static runtime
33
+ if (NOT BUILD_SHARED_LIBS)
34
+ list(APPEND OPENBLAS_MINIMAL_FLAGS -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded)
35
+ endif()
36
+
37
+ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
38
39
+ list(APPEND OPENBLAS_MINIMAL_FLAGS -DUSE_THREAD=OFF)
40
41
+ list(APPEND OPENBLAS_MINIMAL_FLAGS -DINTERFACE64=0)
42
43
# Note: If OpenBLAS has an internal logic flag to force 32-bit, you would add it here.
44
# Example (hypothetical):
45
# list(APPEND OPENBLAS_MINIMAL_FLAGS -DOPENBLAS_32BIT=ON)
0 commit comments