[CMake] Some issues with visual studio

Renato Utsch renatoutsch at gmail.com
Sun Jan 8 10:42:12 EST 2012


But why CMake generates the Debug mode thing first, not the Release? I
can only configure this with msbuild executable? Because I can't find
it :X

I only need to make the Release mode the standard one, there isn't a
way to do that changing a configuration with CMake?

Renato

2012/1/8 Mateusz Loskot <mateusz at loskot.net>:
> On 8 January 2012 15:21, Renato Utsch <renatoutsch at gmail.com> wrote:
>> Yes, but I want to be able to change with CMake, but if I can't do
>> that, at least I want to be able to set the default to the Release
>> version :X
>
> You have to understand there is difference between generators like
> makefiles and generators for projects for IDEs which allow to switch
> between build configurations from within IDE, like Visual Studio does.
>
> IMHO, CMAKE_BUILD_TYPE is irrelevant for IDEs like Visual Studio
> and valid workflow is equivalent to this:
>
> cmake -G "Visual Studio 2010"
> msbuild myproj.sln /p:Configuration=Debug
>
> or
>
> load myproj.sln in VS IDE and change configuration there.
>
> Obviously, for makefiles, CMAKE_BUILD_TYPE is the way to go.
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list