[CMake] Default Generator to use

Eric Noulard eric.noulard at gmail.com
Tue Feb 7 04:38:00 EST 2012


2012/2/7 Sarnath K - ERS, HCLTech <k_sarnath at hcl.com>:
> I just looked at "ActualConfigure()" function. This is the same as the one mentioned in Stackoverflow URL.
>
> I think I will just create the correct entries in the registry and allow "CMAKE" to take the decision.
> I won't pass any "-G" at all.
>
> That's the most portable way as I look at it.

Not my opinion but that's your choice.

> "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0;InstallDir]" -- seems to be the place.
> But I really don't understand what is the ";" doing there.
> Should I first create a 9.0 entry and then create an "InstallDir" inside it pointing to the directory where Visual Studio is installed?

You should read  more about what is the registry, before trying to modify it:
http://en.wikipedia.org/wiki/Windows_Registry
http://support.microsoft.com/kb/136393


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list