I use msbuild on the command line to create the generated solution file:
msbuild /p:Configuration=Release /p:Platform=Win32 build\zlib\vc-9.0\x86\zlib.sln
The problem is that the solution created by cmake has an INSTALL project, which is not created by default.
minigzip: Die Datei "c:\Library\build\zlib\vc-9.0\x86\minigzip.tmp_Release_Win32.vcproj " wird gelöscht. ALL_BUILD: Die Datei "c:\Library\build\zlib\vc-9.0\x86\ALL_BUILD.tmp_Release_Win32.vcpro j" wird gelöscht. INSTALL: The project "INSTALL" is not selected for building in solution configuration "Release|Win32". Done Building Project "c:\Library\build\zlib\vc-9.0\x86\zlib.sln" (default targ ets). Build succeeded. 0 Warning(s) 0 Error(s)
How can I make the target INSTALL build without manually opening the soul and set a checkbox for the configuration?
One solution is to directly call the vcproj file (as I am here)
msbuild /p:Configuration=Release /p:Platform=Win32 build\zlib\vc-9.0\x86\INSTALL.vcproj
but it displays a warning
Microsoft (R)-Buildmodul, Version 3.5.30729.6387 [Microsoft .NET Framework, Version 2.0.50727.6400] Copyright (C) Microsoft Corporation 2007. Alle Rechte vorbehalten. Build started 06.07.2013 17:07:57. Project "c:\Library\build\zlib\vc-9.0\x86\INSTALL.vcproj" on node 0 (default ta rgets). c:\Library\build\zlib\vc-9.0\x86\INSTALL.vcproj : warning MSB4098: MSBuild is i nvoking VCBuild to build this project. Project-to-project references between VC ++ projects (.VCPROJ) and C
As you can see, the assembly was successful. I can ensure the correct assembly by first invoking the solution, but I want to force the solution to also create the INSTALL project.
Any ideas?
visual-studio cmake msbuild
Beachwalker
source share