1
0
mirror of https://github.com/bspeice/aeron-rs synced 2024-12-21 21:38:09 -05:00

Force Windows to use the MSYS Makefiles generator

This commit is contained in:
Bradlee Speice 2020-01-12 17:03:43 -05:00
parent b9b5b74b7c
commit 64fccd6a7e

View File

@ -59,7 +59,13 @@ pub fn main() {
_ => (), _ => (),
}; };
let cmake_output = Config::new(&aeron_path) let mut config = Config::new(&aeron_path);
let config = if cfg!(target_os = "windows") {
config.generator("MSYS Makefiles")
} else {
&mut config
};
let cmake_output = config
.build_target(link_type.target_name()) .build_target(link_type.target_name())
.build(); .build();