On Thu, Mar 21, 2013 at 1:11 PM, Vittorio Giovara < [email protected]> wrote:
> > On Thu, Mar 21, 2013 at 11:06 AM, Vittorio Giovara < > [email protected]> wrote: > >> On Wed, Mar 20, 2013 at 2:05 PM, Brad King <[email protected]> wrote: >> >>> On 3/20/2013 4:52 AM, Vittorio Giovara wrote: >>> > is it possible to use the <TARGET> variable during the COMPILE_OBJECT >>> phase? >>> > I see it only working on EXECUTABLE and LIBRARY steps but a few >>> > languages would benefit from having <TARGET> available during >>> > COMPILE_OBJECT as well. >>> > Is there any way to make it work with the current cmake version? >>> >>> It would take some changes to the C++ code. Look here: >>> >>> >>> http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmMakefileTargetGenerator.cxx;hb=v2.8.10.2#l658 >>> >>> If one sets vars.Target next to where vars.TargetPDB is >>> set then the replacement should occur. If you get it working >>> please respond back here with a patch. >>> >> >> Yup, thanks to your tip, I got it working as expected. >> Please find the patch attached, I'll be glad if you could apply it. >> I'm fine with BSD licensing. >> > > Apologies, I missed the fact that <TARGET> should also contain the output > path. > Please find attached an updated version of the patch, using a similar > procedure as found in cmMakefileExectuableTargetGenerator. > > Do you know if this patch can still make it to CMake 2.8.11 or is it too > late? > Now with correct commit information (sorry for the spam). Vittorio
0001-set-Target-during-rule-setup-so-that-TARGET-is-avail.patch
Description: Binary data
-- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
