add a fatal error if nmake not found

This commit is contained in:
Stephen Birarda 2015-02-23 09:06:39 -08:00
parent 1c707059c5
commit 1b8d421fb3

View file

@ -12,9 +12,12 @@ if (ANDROID)
endif ()
if (WIN32)
find_program(PLATFORM_BUILD_COMMAND NAME nmake)
find_program(PLATFORM_BUILD_COMMAND nmake)
if (NOT PLATFORM_BUILD_COMMAND)
message(FATAL_ERROR "You asked us to grap QXmpp and build it, but nmake was not found. Please make sure the folder containing nmake.exe is in your PATH.")
endif ()
else ()
find_program(PLATFORM_BUILD_COMMAND NAME make)
find_program(PLATFORM_BUILD_COMMAND make)
endif ()
include(ExternalProject)