[CMake] Adding object files to library

Karl Merkley karl at elemtech.com
Thu Dec 2 10:23:32 EST 2004

That was a typo on my part.  Yes they really are the same variable in 
the CMakeLists.txt file.  Thanks for checking that though.  I would 
have felt REALLY embarrassed if that would have been my mistake!

On Dec 2, 2004, at 8:19 AM, Troels Frimor wrote:

> Just to make sure that this is not a simple type error.
> The printed variable and the one added to the library is not the same!
> With regards,
> Troels
> Karl Merkley wrote:
>> I have a problem with the current CVS version.  I am trying to do the 
>> following
>> where INR_OBJS is a list of object files generated from Fortran 
>> source.  I can use MESSAGE(STATUS "${IN_OBJS}") and print out the 
>> list of object files from cmake but they never show up in Makefile.
>> This process works with the 2.0.3 version of CMake but not with the 
>> latest version out of CVS.  (I moved to the CVS version to fix some 
>> problems with Mac OSX).
>> I traced this through the source code and find that I do not get past 
>> the following statement
>>          if(outExt.size() && 
>> !(*i)->GetPropertyAsBool("EXTERNAL_OBJECT") ) // 
>> cmLocalUnixMakefileGenerator.cxx" line 487
>> I tried adding
>> my CMakeLists.txt but it doesn't help.
>> Is this a bug or is there another way to work around this and set the 
>> correct property on an object file?
>>     Thanks,
>>         Karl
>>         karl at elemtech  dot com
>> _______________________________________________
>> CMake mailing list
>> CMake at www.cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake

Karl G. Merkley, Ph.D.
karl at elemtech.com / merk at et.byu.edu
Elemental Technologies Inc.
357 E. 50 S.
American Fork, UT 84003

(801) 756-1972

More information about the CMake mailing list