@@ -9,18 +9,22 @@ macro_rules! switch(($condition:expr) => (if $condition { "ON" } else { "OFF" })
9
9
10
10
fn main ( ) {
11
11
let mut suffix = "" ;
12
- let kind = if feature ! ( "STATIC" ) { "static" } else { "dylib" } ;
12
+ let kind = if feature ! ( "STATIC" ) {
13
+ "static"
14
+ } else {
15
+ "dylib"
16
+ } ;
13
17
let cblas = feature ! ( "CBLAS" ) ;
14
18
let lapacke = feature ! ( "LAPACKE" ) ;
15
19
if !feature ! ( "SYSTEM" ) {
16
20
suffix = "-netlib" ;
17
21
let output = Config :: new ( "source" )
18
- . define ( "BUILD_TESTING" , "OFF" )
19
- . define ( "BUILD_SHARED_LIBS" , switch ! ( kind == "dylib" ) )
20
- . define ( "CBLAS" , switch ! ( cblas) )
21
- . define ( "LAPACKE_WITH_TMG" , switch ! ( lapacke) )
22
- . define ( "CMAKE_INSTALL_LIBDIR" , "lib" )
23
- . build ( ) ;
22
+ . define ( "BUILD_TESTING" , "OFF" )
23
+ . define ( "BUILD_SHARED_LIBS" , switch ! ( kind == "dylib" ) )
24
+ . define ( "CBLAS" , switch ! ( cblas) )
25
+ . define ( "LAPACKE_WITH_TMG" , switch ! ( lapacke) )
26
+ . define ( "CMAKE_INSTALL_LIBDIR" , "lib" )
27
+ . build ( ) ;
24
28
let output = output. join ( "lib" ) ;
25
29
rename ( & output, "blas" , suffix) ;
26
30
rename ( & output, "lapack" , suffix) ;
0 commit comments