View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015593CMakeCMakepublic2015-05-29 07:312016-06-10 14:31
ReporterArt 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 3.2.2 
Target VersionFixed in Version 
Summary0015593: Overriding the project configuration (CMAKE_C_SOURCE_FILE_EXTENSIONS)
DescriptionDuring 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()
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0038871)
Brad King (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2015-05-29 07:31 Art New Issue
2015-06-01 16:30 Brad King Note Added: 0038871
2016-06-10 14:29 Kitware Robot Note Added: 0042787
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team