[CMake] Problem with OpenSSL and multiple compiler

Rolf Eike Beer eike at sf-mail.de
Sun Dec 18 07:41:52 EST 2011


Am Sonntag, 18. Dezember 2011, 07:12:10 schrieb BigPilot:
> Hi,
> 
>  I'm trying to build the LibMSN-4.2 library which is build using CMake.
> I''m, however, encountering two problems:
> 
>  - I have both Visual Studio 2008 Professional (C/C++/C#) and Visual Studio
> 2010 Express Edition C# only installed on my machine. CMake however detects
> Visual Studio 2010 and complains it can't find a suitable compiler. No
> matter what I try, I can't make it understand that it should use Visual
> Studio 2008 (i.e. MSVC9).
> 
>  In the root file I tried addding
> 
>  set(CMAKE_GENERATOR "Visual Studio 9 2008")
> 
>  before the project command. It still detects MSVC10.

How do you call CMake? Usually you would just call it using "cmake -G "Visual 
Studio 9 2008" ...". Also make sure you have deleted everything in the build 
directory before trying again because the compiler is cached and cannot be 
changed after the initial configure.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111218/40214c3b/attachment.pgp>


More information about the CMake mailing list