View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0002306 | CMake | CMake | public | 2005-09-28 15:47 | 2005-10-10 14:12 | ||||
Reporter | Alex Neundorf | ||||||||
Assigned To | Ken Martin | ||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0002306: new Makefile generator problem with ADD_CUSTOM_TARGET and multiple targets with the same name | ||||||||
Description | Hi, I have a macro which creates several custom targets, which depend on each other (e-g- target t1 depends on target t2). I call this macro in several subdirectories, so in each of the subdirs the targets t1 and t2 exist. When I execute "make t1" it executes t2 from probably the first directory it finds, but not the one which belongs to this t1. This worked with the old makefile generator perfectly. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | act-test.tar.gz [^] (390 bytes) 1969-12-31 19:00 make.log [^] (397 bytes) 1969-12-31 19:00 | ||||||||
Relationships | |
Relationships |
Notes | |
(0003062) Alex Neundorf (developer) 2005-09-28 15:54 |
In the attached testcase the three targets "echodir", "echohello" and "echoworld" are created both in the a/ and in the b/ subdirs. When entering "make echoworld" in b/, it doesn't "build" echohello and echodir in b/, but in a/, which isn't what I expected and how cmake < 2.2 worked. |
(0003117) Ken Martin (developer) 2005-10-10 14:12 |
I have checked in a fix for this problem into CVS. But.... my fix is mainly there for backwards compatibility. Having multiple targets with the same name will not work (and hasn't worked) under visual studio or XCode. Another solution is to include in the macro something to make the targets unique. Sush as FOO_<DIRNAME> where DIRNAME is the name of the current directory or some other unique identifier. Thanks for the great example, it made tracking this down much easier. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |