Skip to content

Commit cf8d2f2

Browse files
committed
attempt to fix windows build
1 parent ac3da81 commit cf8d2f2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ if(NOT MSVC)
5454
endif()
5555

5656
# Find and link BLAS
57-
find_package(BLAS REQUIRED)
5857
if(APPLE)
5958
find_library(ACCELERATE_FRAMEWORK Accelerate)
6059
target_link_libraries(dnlp_diff ${ACCELERATE_FRAMEWORK})
60+
elseif(MSVC)
61+
find_package(OpenBLAS CONFIG REQUIRED)
62+
target_link_libraries(dnlp_diff OpenBLAS::OpenBLAS)
6163
else()
64+
find_package(BLAS REQUIRED)
6265
target_link_libraries(dnlp_diff ${BLAS_LIBRARIES})
6366
endif()
6467

0 commit comments

Comments
 (0)