Giter Club home page Giter Club logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024

Original comment by [email protected] on 18 Sep 2012 at 2:16

  • Changed state: Accepted

from ios-cmake.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Currently the configuration (Debug/Release/etc) dependent settings of Xcode 
properties does not work as expected.

This is not going to be really fixable unless this cmake issue is resolved: 
http://public.kitware.com/Bug/view.php?id=12532

Original comment by [email protected] on 18 Sep 2012 at 4:55

  • Changed state: WontFix

from ios-cmake.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
I just tested the same project using the cmake OSX Xcode generator, and it sets 
the Debug and Release properties correctly for Generate Debug Symbols.

Is there any way to at least turn on Generate Debug Symbols by default?

Original comment by [email protected] on 18 Sep 2012 at 6:16

from ios-cmake.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
To turn on Generate Debug Symbols for all of your configurations simply add 
this line to your CMakeLists.txt right after your target:

set_xcode_property(mytarget GCC_GENERATE_DEBUGGING_SYMBOLS YES)

Original comment by [email protected] on 18 Sep 2012 at 6:26

from ios-cmake.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
With the release of CMake 2.8.12, which fixes defect 12532, is this something 
you could sort out now?

Original comment by [email protected] on 14 Oct 2013 at 2:04

from ios-cmake.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Excellent, I'll get on it. Now it 'should' be fixable

Original comment by [email protected] on 15 Oct 2013 at 2:24

from ios-cmake.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024

Original comment by [email protected] on 15 Oct 2013 at 2:25

  • Changed state: Started

from ios-cmake.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Removing the following lines from iOS.cmake solves the issue for me:

  # Force the compilers to gcc for iOS
  include (CMakeForceCompiler)
  CMAKE_FORCE_C_COMPILER (/usr/bin/clang Apple)
  CMAKE_FORCE_CXX_COMPILER (/usr/bin/clang++ Apple)
  set(CMAKE_AR ar CACHE FILEPATH "" FORCE)

Are they really needed?

Autodetection of the compiler seems to work fine for me...

Original comment by [email protected] on 4 Aug 2014 at 1:57

from ios-cmake.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Hmm... actually removing the lines produes the messages:

  -- Detecting C compiler ABI info - failed
  -- Detecting CXX compiler ABI info - failed

However, changed "Apple" to "Clang" (what also happens when removing the lines) 
seems to solve the issue in the correct way:

  # Force the compilers to clang for iOS
  include (CMakeForceCompiler)
  CMAKE_FORCE_C_COMPILER (/usr/bin/clang Clang)
  CMAKE_FORCE_CXX_COMPILER (/usr/bin/clang++ Clang)
  set(CMAKE_AR ar CACHE FILEPATH "" FORCE)

Original comment by [email protected] on 5 Aug 2014 at 8:07

from ios-cmake.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.