Skip to content

Commit 7055824

Browse files
committed
wip, win 32bit still not working locally
1 parent 8b6a131 commit 7055824

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cmake/FindHipoDeps.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ if (BUILD_OPENBLAS)
2929

3030
list(APPEND OPENBLAS_MINIMAL_FLAGS -DCMAKE_GENERATOR_PLATFORM=Win32)
3131

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+
3243
# Note: If OpenBLAS has an internal logic flag to force 32-bit, you would add it here.
3344
# Example (hypothetical):
3445
# list(APPEND OPENBLAS_MINIMAL_FLAGS -DOPENBLAS_32BIT=ON)

0 commit comments

Comments
 (0)