Files
CMake/Tests/RunCMake/cmake_host_system_information/VsMSBuild.cmake
T
Brad King 44a86d0b38 cmake_host_system_information: Add undocumented VS_MSBUILD_COMMAND key
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.
2021-10-20 13:00:25 -04:00

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()