The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15225 
====================================================================== 
Reported By:                Ilya
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15225
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-10-28 13:42 EDT
Last Modified:              2014-10-28 13:42 EDT
====================================================================== 
Summary:                    Xcode generator ignores the add_compile_options
command
Description: 
The flags specified via add_compile_options do not appear anywhere in generated
Xcode project (I use Xcode 6)

In other hand, options specified via the add_definitions command will be
properly placed under the OTHER_CFLAGS Xcode attribute. Moreover, generator
seems to categorize these flags and put them under appropriate Xcode attributes.

E.g.

    add_definitions(
        -DHAVE_PTHREADS
        -Wduplicate-method-match
    )

-DHAVE_PTHREADS will be added to the GCC_PREPROCESSOR_DEFINITIONS Xcode
attribute while -Wduplicate-method-match will be added to the OTHER_CFLAGS Xcode
attribute.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-10-28 13:42 Ilya           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/mailman/listinfo/cmake-developers

Reply via email to