[cmake-developers] [CMake 0013186]: CMake ignores files with a certain name
Mantis Bug Tracker
mantis at public.kitware.com
Thu May 3 09:48:43 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13186
======================================================================
Reported By: m42a
Assigned To:
======================================================================
Project: CMake
Issue ID: 13186
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-05-03 09:48 EDT
Last Modified: 2012-05-03 09:48 EDT
======================================================================
Summary: CMake ignores files with a certain name
Description:
In the project Lirch (at https://github.com/m42a/Lirch/tree/cmake-bug), CMake
entirely ignores references to the file named core/lirch_qtcore.cpp (even if it
doesn't exist). Renaming or moving the file fixes this problem, but referring
to the file by different relative paths does not.
Steps to Reproduce:
0. Install git and QT
1. git clone git://github.com/m42a/Lirch.git
2. mkdir Lirch/build
3. cd Lirch/build
4. git checkout cmake-bug
5. cmake ..
6. make lirch
This fails with an error about not finding main, since core/lirch_qtcore.cpp
contains main but was never compiled or linked. If line 30 in
core/CMakeLists.txt is changed to reference any file other than
lirch_qtcore.cpp, it will either compile or correctly complain about a missing
file.
Additional Information:
I've also reproduced this on Ubuntu 10.04 with cmake 2.8.0.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-05-03 09:48 m42a New Issue
======================================================================
More information about the cmake-developers
mailing list