Skip to content

Commit c9188b7

Browse files
committed
threaded works
1 parent 7a879fa commit c9188b7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

cmake/FindHipoDeps.cmake

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,13 @@ if (BUILD_OPENBLAS)
3333

3434
# Crucial for static linking: Force OpenBLAS to use the static runtime
3535
if (NOT BUILD_SHARED_LIBS)
36-
list(APPEND OPENBLAS_MINIMAL_FLAGS -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded)
36+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
3737
endif()
3838

39-
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
4039

41-
list(APPEND OPENBLAS_MINIMAL_FLAGS -DUSE_THREAD=OFF)
40+
# list(APPEND OPENBLAS_MINIMAL_FLAGS -DUSE_THREAD=OFF)
4241
list(APPEND OPENBLAS_MINIMAL_FLAGS -DINTERFACE64=0)
4342

44-
45-
# Note: If OpenBLAS has an internal logic flag to force 32-bit, you would add it here.
46-
# Example (hypothetical):
47-
# list(APPEND OPENBLAS_MINIMAL_FLAGS -DOPENBLAS_32BIT=ON)
48-
4943
# If the MSVC runtime library issue persists, you can try this flag as well,
5044
# though CMAKE_GENERATOR_PLATFORM should usually be sufficient.
5145
# list(APPEND OPENBLAS_MINIMAL_FLAGS -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL)

0 commit comments

Comments
 (0)