[CMake] Using different compilers

Paulo Jabardo pjabardo at yahoo.com.br
Tue Nov 8 13:09:58 EST 2005


I'm developping  a program that will be executed in
several different platforms and will consist of
c,c++,fortran and yacc files. On some of these
platforms, it is possible to use two different
compilers, for instance gcc and the intel compilers. 

How can I specify the compiler the compiler I want to
use in the CMakeLists.txt? The user could simply use
the advanced mode options to specify the options but I
think it would be interesting to use a set of "canned"
options, such as : 
OPTION(USE_ICC "Use intel compilers") and it would
figure the rest out.



Thanks

Paulo Jabardo


	



	
		
_______________________________________________________ 
Yahoo! Acesso Grátis: Internet rápida e grátis. 
Instale o discador agora!
http://br.acesso.yahoo.com/



More information about the CMake mailing list