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@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!!!
--

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

Reply via email to