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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
