File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn main() {
1717
1818 let build_config = "RelWithDebInfo" ;
1919
20- Command :: new ( "cmake" )
20+ let configure_status = Command :: new ( "cmake" )
2121 . arg ( "-B" )
2222 . arg ( & build_dir)
2323 . arg ( "-S" )
@@ -42,14 +42,14 @@ fn main() {
4242 . arg ( "-DENABLE_IPC=OFF" )
4343 . arg ( format ! ( "-DCMAKE_INSTALL_PREFIX={}" , install_dir. display( ) ) )
4444 . status ( )
45- . unwrap ( ) ;
45+ . expect ( "cmake should be installed and available in PATH." ) ;
4646
4747 let num_jobs = env:: var ( "NUM_JOBS" )
4848 . ok ( )
4949 . and_then ( |v| v. parse :: < u32 > ( ) . ok ( ) )
5050 . unwrap_or ( 1 ) ; // Default to 1 if not set
5151
52- Command :: new ( "cmake" )
52+ let build_status = Command :: new ( "cmake" )
5353 . arg ( "--build" )
5454 . arg ( & build_dir)
5555 . arg ( "--config" )
@@ -58,14 +58,13 @@ fn main() {
5858 . status ( )
5959 . unwrap ( ) ;
6060
61- Command :: new ( "cmake" )
61+ let install_status = Command :: new ( "cmake" )
6262 . arg ( "--install" )
6363 . arg ( & build_dir)
6464 . arg ( "--config" )
6565 . arg ( build_config)
6666 . status ( )
6767 . unwrap ( ) ;
68-
6968 // Check if the build system used a multi-config generator
7069 let lib_dir = if install_dir. join ( "lib" ) . join ( build_config) . exists ( ) {
7170 install_dir. join ( "lib" ) . join ( build_config)
You can’t perform that action at this time.
0 commit comments