Bill, > It should work like this: > > add_executable(foo foo.cxx) > get_target_property(objs foo OBJECT_FILES) > message(${objs})
Thanks, I was mistakenly calling it before the ADD_LIBRARY / ADD_EXECUTABLE. However, this has exposed a bug/issue, my list of dependencies includes some custom commands, one of which has a non-standard language extension ".lint", this is causing a crash here: cmTarget.cxx line 1252 in cmTarget::ComputeObjectFiles() cmSourceFile* sf = *s; const char* lang = this->Makefile->GetLocalGenerator()-> GetGlobalGenerator()-> GetLanguageFromExtension(sf->GetSourceExtension().c_str()); L1252: std::string lookupObj = objExtensionLookup1 + lang; lang is 0x00000000, as the extension lookup has failed. Would you like me to raise a bug report for this? - TrevK _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake