On Thu, Mar 31, 2011 at 6:39 PM, Bill Hoffman <bill.hoff...@kitware.com> wrote: > On 3/31/2011 6:15 PM, David Cole wrote: >> >> On Thu, Mar 31, 2011 at 6:05 PM, Bill Hoffman <bill.hoff...@kitware.com >> <mailto:bill.hoff...@kitware.com>> wrote: >> >> On 3/31/2011 4:19 PM, Chris Scharver wrote: >> >> EXTERNAL_OBJECT not linked using Visual Studio 2010 >> http://public.kitware.com/Bug/view.php?id=11891 >> >> Thanks for the pointer to that bug. It even has a fix. The thing I >> can not figure out is why our ExternlObj test is passing even when >> this is broken.... Any ideas why that test works? >> >> I think it's one of those "works in MSBuild, but not in devenv" issues... > > Nope, I loaded it up in devenv and ExternlObj compiles.... Ran cmake-gui on > ExternalObj then loaded the project and it works... ???
I just did some tinkering and found that a simple change of modifying the ExternalObj test to link with the external object resulted in a failure. ADD_EXECUTABLE(ExternalOBJ executable.cxx ${EXTERNAL_OBJECT}) SET_SOURCE_FILES_PROPERTIES(${EXTERNAL_OBJECT} PROPERTIES EXTERNAL_OBJECT 1) Perhaps the fact that there's a rule to generate the custom object changes how it's handled? Chris _______________________________________________ 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