Skip to content

Commit cb65fae

Browse files
committed
Add back HIPO_USES_
1 parent b6fd41f commit cb65fae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

highs/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ else()
185185
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/highs/hipo/ipm>
186186
)
187187
target_link_libraries(highs BLAS::BLAS)
188+
string(TOLOWER "${BLAS_LIBRARIES}" blas_lower)
189+
if(blas_lower MATCHES "openblas")
190+
target_compile_definitions(highs PRIVATE HIPO_USES_OPENBLAS)
191+
elseif(blas_lower MATCHES "accelerate")
192+
target_compile_definitions(highs PRIVATE HIPO_USES_APPLE_BLAS)
193+
endif()
188194
if(metis_FOUND)
189195
target_link_libraries(highs metis)
190196
else()

0 commit comments

Comments
 (0)