On 04/25/2010 12:10 PM, Michael Wild wrote: > > 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...)
FYI: Doesn't work on *nix, too. > Did you try to output the values of the following variables? > > CMAKE_CXX_SOURCE_FILE_EXTENSIONS > CMAKE_CXX_IGNORE_EXTENSIONS Won't work: See bugtracker issues 8851, 2360 and additionally <http://www.cmake.org/pipermail/cmake/2005-September/007220.html> Advice: SET_SOURCE_FILES_PROPERTIES(File2.CPP PROPERTIES LANGUAGE CXX) or go with lower case... ;) Regards, Michael _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake