[CMake] recommended way to test for msvc/cl ?

Alexander Neundorf a.neundorf-work at gmx.net
Mon Jan 30 14:13:40 EST 2006


Hi, 
 
> Von: Brad King <brad.king at kitware.com>  
>   
> Alexander Neundorf wrote:  
... 
> > Why did you actually enclose the CMAKE_C_COMPILER in "..." ?   
>   
> I was using the "string MATCHES string" form of the IF statement 
> because we are trying to move away from the confusing "var MATCHES 
> string" form.   
>  If the variable is empty the double-quotes ensure the first argument   
> is still a string and the syntax remains valid.  
 
Ah, ok. 
... 
> > Can they simply be added to the files in Modules/Platforms/ ?   
>   
> Of course, that is a simple solution.  Each of those files should set a   
> variable to indicate it has been loaded.  I'll make this change.  The   
 
:-) 
  
How about platform-id's everywhere ? E.g. NETBSD, OPENBSD, IRIX etc. ? 
 
Bye 
Alex 
 

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie


More information about the CMake mailing list