MantisBT - CMake
View Issue Details
0015593CMakeCMakepublic2015-05-29 07:312016-06-10 14:31
Art 
Kitware Robot 
normalminoralways
closedmoved 
CMake 3.2.2 
 
0015593: Overriding the project configuration (CMAKE_C_SOURCE_FILE_EXTENSIONS)
During the operation of the module CMakeCCompiler.cmake.in comes to overwrite the user's configuration parameter CMAKE_C_SOURCE_FILE_EXTENSIONS

Proposed solution:
https://github.com/Kitware/CMake/blob/master/Modules/CMakeCCompiler.cmake.in#L34 [^]
set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)

Can be replaced on

IF(NOT CMAKE_C_SOURCE_FILE_EXTENSIONS)
    set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
ENDIF()
No tags attached.
Issue History
2015-05-29 07:31ArtNew Issue
2015-06-01 16:30Brad KingNote Added: 0038871
2016-06-10 14:29Kitware RobotNote Added: 0042787
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0038871)
Brad King   
2015-06-01 16:30   
The list must be stored in the configured CMakeCCompiler.cmake because that is re-used for try_compile projects, and it must remain consistent. This variable is not actually meant for projects to set directly.

We do provide the LANGUAGE source file property:

 http://www.cmake.org/cmake/help/v3.2/prop_sf/LANGUAGE.html [^]

that can be used to mark a specific source as C.

What extension are you trying to add?
(0042787)
Kitware Robot   
2016-06-10 14:29   
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.