File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " openvr_sys"
3
- version = " 2.1.0 "
3
+ version = " 2.1.1 "
4
4
edition = " 2021"
5
5
rust-version = " 1.82.0"
6
6
authors = [
Original file line number Diff line number Diff line change @@ -12,8 +12,19 @@ fn main() {
12
12
let target_pointer_width = env:: var ( "CARGO_CFG_TARGET_POINTER_WIDTH" ) . unwrap ( ) ;
13
13
14
14
// Configure cmake to place build output in OUT_DIR
15
+ let out_dir_str = out_dir. to_string_lossy ( ) . into_owned ( ) ;
15
16
let mut config = cmake:: Config :: new ( "openvr" ) ;
16
- config. out_dir ( & out_dir) ;
17
+ let config = config
18
+ . define ( "CMAKE_LIBRARY_OUTPUT_DIRECTORY" , & out_dir_str)
19
+ . define ( "CMAKE_ARCHIVE_OUTPUT_DIRECTORY" , & out_dir_str)
20
+ . define ( "CMAKE_RUNTIME_OUTPUT_DIRECTORY" , & out_dir_str)
21
+ . define ( "CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG" , & out_dir_str)
22
+ . define ( "CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE" , & out_dir_str)
23
+ . define ( "CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG" , & out_dir_str)
24
+ . define ( "CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE" , & out_dir_str)
25
+ . define ( "CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG" , & out_dir_str)
26
+ . define ( "CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE" , & out_dir_str)
27
+ . out_dir ( & out_dir) ;
17
28
18
29
if target_os == "macos" {
19
30
config. define ( "BUILD_UNIVERSAL" , "OFF" ) ;
You can’t perform that action at this time.
0 commit comments