Notes |
|
(0039978)
|
Brad King
|
2015-12-14 08:46
|
|
With CMake 3.4.1 and the VS 2015 generator I get the expected content in the .vcxproj file:
$ grep -B 1 'Printing comment' TestProject.vcxproj
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">setlocal
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E echo Printing comment for Debug
--
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">setlocal
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E echo Printing comment for Release
--
<Command Condition="'$(Configuration)|$(Platform)'=='ReleaseInternal|Win32'">setlocal
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E echo Printing comment for ReleaseInternal
I also see the proper output at build time:
$ cmake --build . --config Release --target TestProject
...
Printing comment for Release
$ cmake --build . --config ReleaseInternal --target TestProject
...
Printing comment for ReleaseInternal |
|
|
(0039986)
|
Javier Martinez
|
2015-12-15 14:14
|
|
I can confirm that the correct output is printed when I compile with the VS 2013 IDE. However, if the command is inspected in the IDE as the reproduction steps indicate the wrong command is displayed. Is this a CMake or a VS issue? |
|
|
(0039993)
|
Brad King
|
2015-12-17 08:28
|
|
If the correct output is generated by the build, and the correct content appears in the .vcxproj file, then this is almost certainly a VS issue. CMake is generating the proper content into the file. If you do try to report this to MS, please first reproduce it in .vcxproj file created purely through VS and not with CMake. That will make it clearer. |
|
|
(0040986)
|
Robert Maynard
|
2016-05-02 08:30
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|