MantisBT - CMake
View Issue Details
0002360CMakeCMakepublic2005-10-12 11:462016-06-10 14:30
Filipe Sousa 
Bill Hoffman 
lowfeaturealways
closedmoved 
 
 
0002360: Support for new source file extensions
It's not possible to add new source file extensions through CMAKE_CXX_SOURCE_FILE_EXTENSIONS

What I'd like to do is something like this
SET(CMAKE_CXX_SOURCE_FILE_EXTENSIONS
  ${CMAKE_CXX_SOURCE_FILE_EXTENSIONS} xy)
so that cmake com recognize "xy" as source file that can be compiled
No tags attached.
Issue History
2009-03-05 05:04David FaureNote Added: 0015559
2016-06-10 14:27Kitware RobotNote Added: 0041301
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0015559)
David Faure   
2009-03-05 05:04   
I need this too. We tried to use cmake to build a customer's code, and we had to add ".CPP" as an extension for C++. Setting the CMAKE_CXX_SOURCE_FILE_EXTENSIONS variable didn't work (it's evaluated too early, as issue 4242 mentionned). The workaround we found was to do SET_SOURCE_FILES_PROPERTIES( ${SOURCES} PROPERTIES LANGUAGE CXX ) in every cmakelist.txt, but that's a bit too much trouble (and certainly it was a waste of time finding out why setting the variable didn't work).
(0041301)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.