Browse Source

Fix cmake call specifying envs as `-DENV=VAL` arguments

circle-ci
Andreas Linz 5 years ago
parent
commit
a1a0aec872
1 changed files with 10 additions and 7 deletions
  1. +10
    -7
      build.rs

+ 10
- 7
build.rs View File

@ -85,13 +85,16 @@ fn build(target: String) {
// run cmake
Command::new("cmake")
.current_dir(&build_dir)
.env("CMAKE_BUILD_TYPE", "Release")
.env("CMAKE_INSTALL_LIBDIR", "lib")
.env("CMAKE_INSTALL_PREFIX", format!("{}", &dst_root))
.env("BUILD_EXAMPLE_PROGRAMS", "OFF")
.env("BUILD_TESTS", "OFF")
.env("BUILD_STATIC_LIBS", "ON")
.env("ENABLE_JACK", "OFF")
.arg("-DCMAKE_BUILD_TYPE=Debug")
.arg("-DCMAKE_INSTALL_LIBDIR:PATH=lib")
.arg(format!("-DCMAKE_INSTALL_PREFIX:PATH={}", &dst_dir.display()))
.arg("-DBUILD_EXAMPLE_PROGRAMS:BOOL=OFF")
.arg("-DBUILD_TESTS:BOOL=OFF")
.arg("-DBUILD_STATIC_LIBS:BOOL=OFF")
.arg("-DBUILD_SHARED_LIBS:BOOL=ON")
.arg("-DENABLE_JACK:BOOL=OFF")
.arg("-DENABLE_PULSEAUDIO:BOOL=OFF")
.arg("-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON")
.arg("..")
.output()
.unwrap();

Loading…
Cancel
Save