File tree 2 files changed +12
-28
lines changed
2 files changed +12
-28
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,16 @@ fn main() {
28
28
29
29
println ! ( "cargo:rustc-link-lib=static=chiavdfc" ) ;
30
30
31
- if cfg ! ( target_os = "windows" ) {
32
- let build_type = if cfg ! ( debug_assertions) {
33
- "Debug"
34
- } else {
35
- "Release"
36
- } ;
37
-
38
- println ! (
39
- "cargo:rustc-link-search=native={}" ,
40
- dst. join( "build" )
41
- . join( "lib" )
42
- . join( "static" )
43
- . join( build_type)
44
- . to_str( )
45
- . unwrap( )
46
- ) ;
31
+ println ! (
32
+ "cargo:rustc-link-search=native={}" ,
33
+ dst. join( "build" )
34
+ . join( "lib" )
35
+ . join( "static" )
36
+ . to_str( )
37
+ . unwrap( )
38
+ ) ;
47
39
40
+ if cfg ! ( target_os = "windows" ) {
48
41
println ! ( "cargo:rustc-link-lib=static=mpir" ) ;
49
42
println ! (
50
43
"cargo:rustc-link-search=native={}" ,
@@ -56,15 +49,6 @@ fn main() {
56
49
. unwrap( )
57
50
) ;
58
51
} else {
59
- println ! (
60
- "cargo:rustc-link-search=native={}" ,
61
- dst. join( "build" )
62
- . join( "lib" )
63
- . join( "static" )
64
- . to_str( )
65
- . unwrap( )
66
- ) ;
67
-
68
52
println ! ( "cargo:rustc-link-lib=gmp" ) ;
69
53
}
70
54
Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ if(BUILD_CHIAVDFC)
101
101
102
102
set_target_properties (chiavdfc_shared PROPERTIES
103
103
OUTPUT_NAME chiavdfc
104
- LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib/shared"
105
- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib/shared"
104
+ LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib/shared$<0:> "
105
+ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib/shared$<0:> "
106
106
)
107
107
108
108
set_target_properties (chiavdfc_static PROPERTIES
109
109
OUTPUT_NAME chiavdfc
110
- ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib/static"
110
+ ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib/static$<0:> "
111
111
)
112
112
endif ()
You can’t perform that action at this time.
0 commit comments