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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to