MantisBT - CMake
View Issue Details
0014881CMakeCMakepublic2014-04-15 10:482014-10-06 10:33
raspy 
 
normalminoralways
closedduplicate 
x86_64RedHat Enterprise Linux6.4
CMake 2.8.12.2 
 
0014881: Older versions of TI compilers do not support --output_file
I 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.
No tags attached.
related to 0014876closed Kitware Robot Improve support for TI compiler 
Issue History
2014-04-15 10:48raspyNew Issue
2014-04-15 10:55Brad KingRelationship addedrelated to 0014876
2014-04-15 10:56Brad KingStatusnew => resolved
2014-04-15 10:56Brad KingResolutionopen => duplicate
2014-10-06 10:33Robert MaynardNote Added: 0036978
2014-10-06 10:33Robert MaynardStatusresolved => closed

Notes
(0036978)
Robert Maynard   
2014-10-06 10:33   
Closing resolved issues that have not been updated in more than 4 months.