Thank you Eric.... The entry for 9.0 is already there and CMAKE is detecting it in our setup without passing any -G option. And, the default is 32-bit build even on 64-bit machines. This is great news for us!
If this behavior is seen with the VC 10 installation then we are good to go on this without any changes. Thanks, Best Regards, Sarnath -----Original Message----- From: Eric Noulard [mailto:[email protected]] Sent: Tuesday, February 07, 2012 3:08 PM To: Sarnath K - ERS, HCLTech Cc: [email protected] Subject: Re: [CMake] Default Generator to use 2012/2/7 Sarnath K - ERS, HCLTech <[email protected]>: > 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 ::DISCLAIMER:: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ----------------------------------------------------------------------------------------------------------------------- -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
