View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004242CMakeCMakepublic2006-12-23 13:422015-06-02 06:50
Reportercstraehl 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004242: CMAKE_CXX_SOURCE_FILE_EXTENSIONS not respected
DescriptionCMAKE_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 ....
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0006510)
Bill Hoffman (manager)
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.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team