On Friday 02 Jul 2010 12:07:07 am Alexander Neundorf wrote:
> On Thursday 01 July 2010, Kishore wrote:
> > It seems that the PROJECT() command does a fair bit behind the scenes and
> > is not documented enough. It seems to "reset" several variable created
> > before it was first called.
> > 
> > Since i use cmake from cross compilation, i have created Platform files
> > for Generic-gcc.cmake and Generic-gcc-uc3b1256.cmake (for the processor
> > that I use)
> > 
> > 1) It seems that these files are invoked inside the PROJECT() command
> > 2) The platform files set up some needed variables such as CMAKE_C_FLAGS
> > 3) When the PROJECT() command finishes, the variable CMAKE_C_FLAGS is
> > again empty.
> 
> project() automatically enable the languages, if no languages are given,
> it  tries C and C++. While doing this, a whole bunch of variables are set.

Fair enough. But then it should take into account the values i have set for 
some of those variables in the platform modules. OTOH if it's wrong to be 
setting those variables in the platform files where else should they be set and 
what is the role of they platfrom modules?
-- 
Cheers!
Kishore
_______________________________________________
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