mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05:00
44a86d0b38
When using the Visual Studio generator for VS 10 or above, offer this key to get the location of the MSBuild command before the first `project()` or `enable_language()` command has finished running. This will be needed only by one of our own modules, so leave it undocumented for now.
5 lines
199 B
CMake
5 lines
199 B
CMake
cmake_host_system_information(RESULT msbuild QUERY VS_MSBUILD_COMMAND)
|
|
if(NOT EXISTS "${msbuild}")
|
|
message(FATAL_ERROR "VS_MSBUILD_COMMAND returned path that does not exist:\n ${msbuild}")
|
|
endif()
|