File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
extern crate cmake;
2
2
3
3
use cmake:: Config ;
4
- use std:: { env, fs, os } ;
5
- use std:: path:: { Path , PathBuf } ;
4
+ use std:: { env, fs} ;
5
+ use std:: path:: Path ;
6
6
7
7
macro_rules! feature( ( $name: expr) => ( env:: var( concat!( "CARGO_FEATURE_" , $name) ) . is_ok( ) ) ) ;
8
8
macro_rules! switch( ( $condition: expr) => ( if $condition { "ON" } else { "OFF" } ) ) ;
@@ -14,12 +14,7 @@ fn main() {
14
14
let lapacke = feature ! ( "LAPACKE" ) ;
15
15
if !feature ! ( "SYSTEM" ) {
16
16
suffix = "-netlib" ;
17
- let source = PathBuf :: from ( "source" ) ;
18
- if !source. join ( "CBLAS" ) . join ( "CMAKE" ) . exists ( ) {
19
- os:: unix:: fs:: symlink ( source. join ( "CBLAS" ) . join ( "cmake" ) ,
20
- source. join ( "CBLAS" ) . join ( "CMAKE" ) ) . unwrap ( ) ;
21
- }
22
- let output = Config :: new ( & source)
17
+ let output = Config :: new ( "source" )
23
18
. define ( "BUILD_TESTING" , "OFF" )
24
19
. define ( "BUILD_SHARED_LIBS" , switch ! ( kind == "dylib" ) )
25
20
. define ( "CBLAS" , switch ! ( cblas) )
You can’t perform that action at this time.
0 commit comments