MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0016047 | CMake | CMake | public | 2016-04-01 13:36 | 2016-06-10 14:31 |
Reporter | Maurizio Paolini | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake 3.4.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0016047: automoc generates wrong #includes for projects in a symlinked path | ||||
Description | project "kig" uses cmake and automoc. My local copy of the git sources are located in a folder that I reach following a symlink (it resides in a local partition whereas my home is on an NFS-mounted filesystem). after a cmake and then a "make", the generated "moc*" files contain an "#include" like this: #include "../../../../../misc/euclide/paolini/Git/kdeedu/kig/modes/popup/popup.h" There is a wrong number of ".." and the path does not work. using "make VERBOSE=1 kigpart_automoc" it turns out that the following command is issued: /usr/lib/qt5/bin/moc -I/home/matem/paolini/Git/kdeedu/kig/modes [...] -o /home/matem/paolini/Git/kdeedu/kig/moc_popup.cpp /home/misc/euclide/paolini/Git/kdeedu/kig/modes/popup/popup.h where the [...] part contains many more -I and various options. Notice that "/home/matem/paolini/Git/" and "/home/misc/euclide/paolini/Git/" point to the same place, the first through the symlink "Git", the second is the physical path. I guess that then "moc" tries hard to walk (with a relative path) from one path to the other, but there is no way to successfully climb up a path with a symlink in it using the ".." directory. This problem was previously reported in the QT bug tracker https://bugreports.qt.io/browse/QTBUG-51964 [^] | ||||
Steps To Reproduce | $ mkdir -p a/b $ ln -s a/b a.lnk $ cd a.lnk $ <create a cmake project here that uses automoc> $ cd <project> $ cmake . [...] $ make | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-04-01 13:36 | Maurizio Paolini | New Issue | |||
2016-04-04 10:29 | Ben Boeckel | Note Added: 0040803 | |||
2016-04-04 12:12 | Maurizio Paolini | Note Added: 0040805 | |||
2016-04-04 12:51 | Ben Boeckel | Note Added: 0040807 | |||
2016-04-04 14:47 | Maurizio Paolini | Note Added: 0040808 | |||
2016-04-04 14:53 | Ben Boeckel | Note Added: 0040809 | |||
2016-04-04 17:48 | Maurizio Paolini | Note Added: 0040810 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042975 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|