Skip to content

Commit 2e2e4f5

Browse files
authored
Merge pull request #235 from madsmtm/fix-unnecessary-search-path
Fix unnecessary search path warning on macOS
2 parents 12a3279 + 4261b2a commit 2e2e4f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

zng/cmake.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ pub fn build_zlib_ng(target: &str, compat: bool) {
3939
cmake.define("CMAKE_GENERATOR_PLATFORM", "Win32");
4040
}
4141

42+
// libz-ng uses the GNUInstallDirs convention, so we can use the following
43+
// to ensure libraries are placed in a consistent place in the
44+
// installation dir.
45+
cmake.define("CMAKE_INSTALL_LIBDIR", "lib");
46+
4247
let install_dir = cmake.build();
4348

4449
let includedir = install_dir.join("include");
4550
let libdir = install_dir.join("lib");
46-
let libdir64 = install_dir.join("lib64");
4751
println!(
4852
"cargo:rustc-link-search=native={}",
4953
libdir.to_str().unwrap()
5054
);
51-
println!(
52-
"cargo:rustc-link-search=native={}",
53-
libdir64.to_str().unwrap()
54-
);
5555
let mut debug_suffix = "";
5656
let libname = if target.contains("windows") && target.contains("msvc") {
5757
if env::var("OPT_LEVEL").unwrap() == "0" {

0 commit comments

Comments
 (0)