View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002360CMakeCMakepublic2005-10-12 11:462016-06-10 14:30
ReporterFilipe Sousa 
Assigned ToBill Hoffman 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002360: Support for new source file extensions
DescriptionIt'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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0015559)
David Faure (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2009-03-05 05:04 David Faure Note Added: 0015559
2016-06-10 14:27 Kitware Robot Note Added: 0041301
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team