[cmake-developers] [CMake 0012514]: Objective-C files compile as C++ language
Mantis Bug Tracker
mantis at public.kitware.com
Tue Oct 11 16:36:15 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=12514
======================================================================
Reported By: AerialX
Assigned To:
======================================================================
Project: CMake
Issue ID: 12514
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-10-11 16:36 EDT
Last Modified: 2011-10-11 16:36 EDT
======================================================================
Summary: Objective-C files compile as C++ language
Description:
CMAKE_CXX_SOURCE_FILE_EXTENSIONS defaults to including both the .mm and .m
extensions. While .mm is indeed used for Objective-C++, .m is Objective-C and
should be moved into CMAKE_C_SOURCE_FILE_EXTENSIONS instead.
As it is not currently possible to change these variables as a user or in a
toolchain file, the only workaround is to manually mark your .m files as C
language with set_source_files_properties.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-10-11 16:36 AerialX New Issue
======================================================================
More information about the cmake-developers
mailing list