[CMake] Problem with OpenSSL and multiple compiler

BigPilot bigpilot at linuxmail.org
Sun Dec 18 07:49:50 EST 2011


Hi Rolf,

 Thanks, I got it working by using the -G command line (I used: CMake -G "Visual Studio 9 2008" .. from the build directory).

 It now complaints that it can't find the OpenSSL package. Should I add a command line argument to tell it where it can find the directory?

 Kind regards

 BigPIlot

----- Original Message -----
From: Rolf Eike Beer
Sent: 12/18/11 01:41 PM
To: cmake at cmake.org
Subject: Re: [CMake] Problem with OpenSSL and multiple compiler

 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



Yeah, BigPilot!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111218/aff868e6/attachment-0001.htm>


More information about the CMake mailing list