[cmake-developers] [CMake 0015438]: project([...] C) for Objective-C

Mantis Bug Tracker mantis at public.kitware.com
Mon Mar 9 04:13:11 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15438 
====================================================================== 
Reported By:                Mathieu Malaterre
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15438
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-03-09 04:13 EDT
Last Modified:              2015-03-09 04:13 EDT
====================================================================== 
Summary:                    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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-03-09 04:13 Mathieu MalaterreNew Issue                                    
======================================================================



More information about the cmake-developers mailing list