MantisBT - CMake
View Issue Details
0010610CMakeCMakepublic2010-04-25 21:462010-10-06 14:35
Jarl Lindrud 
Bill Hoffman 
normalmajoralways
closedfixed 
CMake-2-8 
CMake 2.8.3CMake 2.8.3 
0010610: VS2010 generator does not handle C++ files with upper case CPP extension
Create two files, File1.cpp and File2.CPP (note the case difference). With this CMakeLists.txt:

PROJECT(Bug)
ADD_EXECUTABLE(Bug File1.cpp File2.CPP)

, run the VS2010 generator. Open the solution in VS2010, do a build, and File2.CPP will not be compiled.
I'm using cmake 2.8.1. When generating a VS2008 solution, it works fine.
No tags attached.
related to 0008943closed Bill Hoffman NMake Makefiles does not include files with uppercase extensions 
Issue History
2010-04-25 21:46Jarl LindrudNew Issue
2010-05-03 03:18Rolf Eike BeerNote Added: 0020512
2010-05-04 14:34Bill HoffmanNote Added: 0020540
2010-05-04 14:35Bill HoffmanRelationship addedrelated to 0008943
2010-08-31 17:10David ColeStatusnew => assigned
2010-08-31 17:10David ColeAssigned To => Bill Hoffman
2010-08-31 17:53David ColeTarget Version => CMake 2.8.3
2010-09-02 14:12Bill HoffmanNote Added: 0022075
2010-09-04 10:30Bill HoffmanNote Added: 0022089
2010-09-08 09:57Bill HoffmanNote Added: 0022134
2010-09-08 09:58Bill HoffmanStatusassigned => closed
2010-09-08 09:58Bill HoffmanResolutionopen => fixed
2010-10-06 14:35David ColeFixed in Version => CMake 2.8.3

Notes
(0020512)
Rolf Eike Beer   
2010-05-03 03:18   
Related to 8943?
(0020540)
Bill Hoffman   
2010-05-04 14:34   
This seems more like a change in VS. CMake did nothing special for .CPP in VS 8 or 9.
(0022075)
Bill Hoffman   
2010-09-02 14:12   
I just pushed a fix for this into next for CMake.
(0022089)
Bill Hoffman   
2010-09-04 10:30   
So, I might be reverting this change....

The result of supporting .CPP is many failing tests:


http://www.cdash.org/CDash/queryTests.php?project=CMake&date=2010-09-04&filtercount=1&showfilters=1&field1=status/string&compare1=63&value1=Failed [^]

Seems that several unix compilers do not understand .CPP....
(0022134)
Bill Hoffman   
2010-09-08 09:57   
This is as fixed as it is going to be. It will work on WIN32.