Skip to content

Commit daf574a

Browse files
committed
optional blas added to cmake targets
1 parent 4d59a83 commit daf574a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmake/highs-config.cmake.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ set(@PACKAGE_PREFIX@_VERSION @PROJECT_VERSION@)
77
include(CMakeFindDependencyMacro)
88
find_dependency(Threads)
99

10+
# Only look for BLAS if highs was built with it
11+
set(_HIGHS_HAVE_BLAS @HIPO@)
12+
13+
if(_HIGHS_HAVE_BLAS)
14+
find_dependency(BLAS)
15+
endif()
16+
17+
# Let users know about optional features
18+
set(HIGHS_HAVE_BLAS ${_HIGHS_HAVE_BLAS})
19+
1020
@CONF_ZLIB@
1121

1222
include("${CMAKE_CURRENT_LIST_DIR}/highs-targets.cmake")

0 commit comments

Comments
 (0)