[cmake-developers] [CMake 0014881]: Older versions of TI compilers do not support --output_file
Mantis Bug Tracker
mantis at public.kitware.com
Tue Apr 15 10:48:54 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14881
======================================================================
Reported By: raspy
Assigned To:
======================================================================
Project: CMake
Issue ID: 14881
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-04-15 10:48 EDT
Last Modified: 2014-04-15 10:48 EDT
======================================================================
Summary: Older versions of TI compilers do not support
--output_file
Description:
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
http://public.kitware.com/Bug/view.php?id=14879).
Keep in mind though, that <OBJECT_DIR> changed semantics recently, so it is
needed to update the issue together with
http://public.kitware.com/Bug/view.php?id=14876.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-04-15 10:48 raspy New Issue
======================================================================
More information about the cmake-developers
mailing list