help cmake find msbuild

This commit is contained in:
Stephen Birarda 2015-02-23 12:04:35 -08:00
parent e60d91e4ce
commit ded0b1461b
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,7 @@ if (WIN32)
set(MSBUILD_CONFIGURATION Release) set(MSBUILD_CONFIGURATION Release)
endif () endif ()
find_program(MSBUILD_COMMAND msbuild) find_program(MSBUILD_COMMAND msbuild PATHS "C:/Program Files (x86)/MSBUILD/12.0/Bin")
ExternalProject_Add( ExternalProject_Add(
${EXTERNAL_NAME} ${EXTERNAL_NAME}

View file

@ -12,7 +12,8 @@ if (ANDROID)
endif () endif ()
if (WIN32) if (WIN32)
find_program(PLATFORM_BUILD_COMMAND nmake) find_program(PLATFORM_BUILD_COMMAND nmake PATHS "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin")
if (NOT PLATFORM_BUILD_COMMAND) if (NOT PLATFORM_BUILD_COMMAND)
message(FATAL_ERROR "You asked CMake to grap QXmpp and build it, but nmake was not found. Please make sure the folder containing nmake.exe is in your PATH.") message(FATAL_ERROR "You asked CMake to grap QXmpp and build it, but nmake was not found. Please make sure the folder containing nmake.exe is in your PATH.")
endif () endif ()