-
- Downloads
cmake: Fix --build <relative-dir> for VS generators (#15609)
The VS >= 10 generators need to parse the .sln file from the build directory to locate targets in subdirectories. This occurs after we change the working directory to the build tree. If a relative directory other than "." was given then we would change to it and also refer to the .sln file location with it. Fix this by converting the build tree to a full path always. This will also give a more informative error message when the directory does not exist.
Showing
- Source/cmakemain.cxx 1 addition, 1 deletionSource/cmakemain.cxx
- Tests/RunCMake/CommandLine/BuildDir.cmake 1 addition, 0 deletionsTests/RunCMake/CommandLine/BuildDir.cmake
- Tests/RunCMake/CommandLine/BuildDir/CMakeLists.txt 5 additions, 0 deletionsTests/RunCMake/CommandLine/BuildDir/CMakeLists.txt
- Tests/RunCMake/CommandLine/RunCMakeTest.cmake 15 additions, 0 deletionsTests/RunCMake/CommandLine/RunCMakeTest.cmake
- Tests/RunCMake/CommandLine/build-bad-dir-result.txt 1 addition, 0 deletionsTests/RunCMake/CommandLine/build-bad-dir-result.txt
- Tests/RunCMake/CommandLine/build-bad-dir-stderr.txt 2 additions, 0 deletionsTests/RunCMake/CommandLine/build-bad-dir-stderr.txt
Tests/RunCMake/CommandLine/BuildDir.cmake
0 → 100644
Please register or sign in to comment