Force Windows to use the MSYS Makefiles generator

trying^2
Bradlee Speice 2020-01-12 17:03:43 -05:00
parent b9b5b74b7c
commit 64fccd6a7e
1 changed files with 7 additions and 1 deletions

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();