VS 2017: Incorrect Intermediate Directory for utility targets
Using cmake-3.7.20161123-g250c3-win64-x64.msi from the nightly builds and generating project files for the Visual Studio 2017 Community Edition RC results in ZERO_CHECK and ALL_BUILD Intermediate Directories being incorrect.
For example I have the following file structure:
- MyProject (root folder)
- build
- subproject1
- subproject2
- CMakeLists.txt
Now generating the solution for VS17 into the build directory and building will result in a x64 folder being created in the root folder along with intermediate log files and such from ALL_BUILD and ZERO_CHECK projects. This depending on the situation can happen for both ALL_BUILD and ZERO_CHECK. This seems to be caused by the Intermediate Directory for ZERO_CHECK and ALL_BUILD projects being set to $(Platform)\$(Configuration)\$(ProjectName)\
, instead of $(SolutionDir)$(Platform)\$(Configuration)\$(ProjectName)\
, which resolves the problem.