View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014881CMakeCMakepublic2014-04-15 10:482014-10-06 10:33
Reporterraspy 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
Platformx86_64OSRedHat Enterprise LinuxOS Version6.4
Product VersionCMake 2.8.12.2 
Target VersionFixed in Version 
Summary0014881: Older versions of TI compilers do not support --output_file
DescriptionI have a project which is tied to some old compiler of TMS470 4.1.4. This version still does not support --output_file nor -fe switch. Regular way to go was to use -fr switch.

In order to support also older versions of TI compilers (which also is valid for new ones), replace in TI-C.cmake:

set(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> --compile_only --c_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<OBJECT>")

With:

set(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> --compile_only --c_file=<SOURCE> <DEFINES> <FLAGS> --obj_directory=<OBJECT_DIR>")
set(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1)

Even better, --obj_directory should be replaced with -fr option (see 0014879).

Keep in mind though, that <OBJECT_DIR> changed semantics recently, so it is needed to update the issue together with 0014876.
TagsNo tags attached.
Attached Files

 Relationships
related to 0014876closedKitware Robot Improve support for TI compiler 

  Notes
(0036978)
Robert Maynard (manager)
2014-10-06 10:33

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-04-15 10:48 raspy New Issue
2014-04-15 10:55 Brad King Relationship added related to 0014876
2014-04-15 10:56 Brad King Status new => resolved
2014-04-15 10:56 Brad King Resolution open => duplicate
2014-10-06 10:33 Robert Maynard Note Added: 0036978
2014-10-06 10:33 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team