[CMake] VS2010 problem with upper case CPP extension
Michael Wild
themiwi at gmail.com
Sun Apr 25 06:10:29 EDT 2010
On 25. Apr, 2010, at 11:37 , Jarl Lindrud wrote:
>
> Hi,
>
> I've just run cmake 2.8.1, with the "Visual Studio 10" generator, on a cmake project that I've previously been running the VS2008 generator on.
>
> There appears to be a problem with C++ source files that end with upper case CPP. They end up in the Visual Studio C++ project, but when I look at the properties of the file, I see "Does not participate in build", and indeed, when building, the compiler ignores the file completely.
>
> The lower case .cpp files are fine.
>
> This issue is easy to reproduce, just use this CMakeLists.txt file:
>
> PROJECT(Bug)
> ADD_EXECUTABLE(Bug File1.cpp File2.CPP)
>
> , and create two empty files File1.cpp and File2.CPP (note the case...)
>
> Regards,
> Jarl.
Did you try to output the values of the following variables?
CMAKE_CXX_SOURCE_FILE_EXTENSIONS
CMAKE_CXX_IGNORE_EXTENSIONS
Michael
More information about the CMake
mailing list