MantisBT - CMake
View Issue Details
0004242CMakeCMakepublic2006-12-23 13:422015-06-02 06:50
cstraehl 
Bill Hoffman 
normalmajoralways
closedno change required 
 
 
0004242: CMAKE_CXX_SOURCE_FILE_EXTENSIONS not respected
CMAKE_CXX_SOURCE_FILE_EXTENSIONS (and the corresponding c variable) are not evaluated by cmake! why are theses variables there ?
if theses variables were respected there would be an easy way to add support for .s and .S assembler files ....
No tags attached.
Issue History

Notes
(0006510)
Bill Hoffman   
2007-02-21 11:52   
They are evaluated very early on, in the enable language. To add support for .S and .s you can do it by creating a new language. For example see Java:

CMakeDetermineJavaCompiler.cmake CMakeJavaInformation.cmake
CMakeJavaCompiler.cmake.in CMakeTestJavaCompiler.cmake

Also the same files for CMakeCXX*.cmake. IF you created a CMakeASM* set of files, it should work. The .cmake.in one is the one that sets the CMAKE_(LANG)_SOURCE_FILE_EXTENSIONS.