Comments (9)
Original comment by [email protected]
on 18 Sep 2012 at 2:16
- Changed state: Accepted
from ios-cmake.
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.
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.
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.
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.
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.
Original comment by [email protected]
on 15 Oct 2013 at 2:25
- Changed state: Started
from ios-cmake.
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.
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)
- MACOSX_BUNDLE property not available in TRY_COMPILE (and related system tests) HOT 2
- configure: error: C++ compiler cannot create executables HOT 2
- check_c_source_compiles test always fails HOT 3
- Please add armv7s HOT 3
- Cannot cross-compile for iOS SDK 7.0 (on MacOS 10.9 Mavericks) HOT 8
- compilers not found with cmake-3 HOT 4
- warning: argument unused during compilation: '-headerpad_max_install_names' HOT 1
- Generate Debug Symbols turned off HOT 1
- Xcode 6.1 + iOS 8.1 support
- gcc not found (includes fix)
- Simulator not working anymore HOT 2
- Single project for both - device & simulator? HOT 8
- Xcode 4.3 folder structure modifications HOT 1
- Installation failed HOT 4
- Typo in "No iOS SDK's found in default seach path" HOT 3
- Having MACOSX_DEPLOYMENT_TARGET=10.8 env. var breaks cmake invokation. HOT 3
- Building library with QT HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-cmake.