<span style='font-family:Verdana'><span style='font-size:12px'><br /> 
Hi Rolf,<br /> 
<br /> 
Thanks, I got it working by using the -G command line (I used: CMake -G "Visual Studio 9 2008" .. from the build directory).<br /> 
<br /> 
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?<br /> 
<br /> 
Kind regards<br /> 
<br /> 
BigPIlot<br /> 
<br /> 
<p style="margin:0px; padding:0px;" > 
        Ā </p> 
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite"> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">From: Rolf Eike Beer</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">Sent: 12/18/11 01:41 PM</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">To: cmake@cmake.org</span></span></p> 
        <p style="margin:0px; padding:0px;" > 
                <span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [CMake] Problem with OpenSSL and multiple compiler</span></span></p> 
        <br /> 
        <div> 
                <div> 
                        <pre style="white-space: pre-wrap; word-wrap: break-word; font-size:11;pre"> 
Am Sonntag, 18. Dezember 2011, 07:12:10 schrieb BigPilot: 
&gt; Hi, 
&gt; 
&gt;  I'm trying to build the LibMSN-4.2 library which is build using CMake. 
&gt; I''m, however, encountering two problems: 
&gt; 
&gt;  - I have both Visual Studio 2008 Professional (C/C++/C#) and Visual Studio 
&gt; 2010 Express Edition C# only installed on my machine. CMake however detects 
&gt; Visual Studio 2010 and complains it can't find a suitable compiler. No 
&gt; matter what I try, I can't make it understand that it should use Visual 
&gt; Studio 2008 (i.e. MSVC9). 
&gt; 
&gt;  In the root file I tried addding 
&gt; 
&gt;  set(CMAKE_GENERATOR "Visual Studio 9 2008") 
&gt; 
&gt;  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</pre> 
                </div> 
        </div> 
</blockquote> 
<p style="margin:0px; padding:0px;" > 
        Ā </p> 
<br /> 
<br /> 
<br /> 
<span id="editor_signature"><span style="font-family:Verdana; font-size:12px">Yeah,&nbsp;BigPilot!!!</span></span></span></span>