View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015438 | CMake | (No Category) | public | 2015-03-09 04:13 | 2016-06-10 14:31 | ||||
Reporter | Mathieu Malaterre | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake 3.0.2 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015438: project([...] C) for Objective-C | ||||||||
Description | The following cmake scripts has an implicit (working) behavior for Objective-C++: project(bla CXX) add_executable(foo foo.c foo.mm) However the following (equivalent) code does not seems to be working as I would expect: project(bla C) add_executable(foo foo.c foo.m) | ||||||||
Additional Information | While Objective-C has never been documented in CMake, it is a required behavior on MacOSX as so many of its API are only accessible through Objective-C. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0038179) Mathieu Malaterre (developer) 2015-03-09 04:33 |
What works for me is: cmake_minimum_required(VERSION 3.1) project(bla C) add_executable(foo foo.c foo.m) set_source_files_properties(foo.m PROPERTIES LANGUAGE C) |
(0038294) Brad King (manager) 2015-03-25 11:02 |
Relevant mailing list threads: Objective-C support http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9371 [^] [patch] treat .m files as c, not c++ http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9707 [^] |
(0042727) Kitware Robot (administrator) 2016-06-10 14:29 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-03-09 04:13 | Mathieu Malaterre | New Issue | |
2015-03-09 04:33 | Mathieu Malaterre | Note Added: 0038179 | |
2015-03-25 11:00 | Brad King | Relationship added | related to 0014516 |
2015-03-25 11:02 | Brad King | Note Added: 0038294 | |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042727 | |
2016-06-10 14:29 | Kitware Robot | Status | new => resolved |
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |