cmake generate MSYS Makefiles on windows

This commit is contained in:
Daniel Agar 2015-10-12 11:10:13 -04:00
parent e8fd711a5c
commit 1bfc919c83
1 changed files with 7 additions and 1 deletions

View File

@ -74,7 +74,13 @@ ifdef NINJA_BUILD
PX4_MAKE = ninja
PX4_MAKE_ARGS =
else
PX4_CMAKE_GENERATOR ?= "Unix Makefiles"
ifdef SYSTEMROOT
# Windows
PX4_CMAKE_GENERATOR ?= "MSYS Makefiles"
else
PX4_CMAKE_GENERATOR ?= "Unix Makefiles"
endif
PX4_MAKE = make
PX4_MAKE_ARGS = -j$(j) --no-print-directory
endif