mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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()
|