Re: [CMake] XCode target membership

2019-03-15 Thread Brad King via CMake
On 3/15/19 1:28 AM, Roman Wüger wrote: > since Xcode 10 I noticed that I must check the Checkbox > (Target membership on the right pane) for my target when I want > that the assets are recognized for the specified target. > > Is there a way to automatically set this option via CMake? The problem >

[CMake] XCode target membership

2019-03-14 Thread Roman Wüger
Hello, since Xcode 10 I noticed that I must check the Checkbox (Target membership on the right pane) for my target when I want that the assets are recognized for the specified target. Is there a way to automatically set this option via CMake? The problem is that when I forget to set this check

Re: [CMake] Xcode duplicate filename issue?

2017-06-26 Thread Robert Maynard
> return 0; > } > > > > source.cpp (2): > > int subdir(int x) > { > int total = 0; > > for( int i=0; i { > total += x; > } > > return total; > } > > > > empty.cpp is empty > > > > Thank you! > > __

Re: [CMake] Xcode duplicate filename issue?

2017-06-26 Thread Watson, Andre
) { int total = 0; for( int i=0; i Sent: Monday, June 26, 2017 12:35:12 PM To: Watson, Andre; cmake@cmake.org Subject: Re: [CMake] Xcode duplicate filename issue? Hello, On 6/26/17 8:12 PM, Watson, Andre wrote: > We're currently migrating a huge internal system over to CMake, a

Re: [CMake] Xcode duplicate filename issue?

2017-06-26 Thread Gregor Jasny via CMake
Hello, On 6/26/17 8:12 PM, Watson, Andre wrote: > We're currently migrating a huge internal system over to CMake, and we're > nearing completion, but have run into an issue with the generated Xcode > projects. We build this system on Windows, Linux, and Mac (both makefile and > Xcode). On all

[CMake] Xcode duplicate filename issue?

2017-06-26 Thread Watson, Andre
Hello, my name is Andre Watson and I work at Intuit working on the TurboTax line of products. We're currently migrating a huge internal system over to CMake, and we're nearing completion, but have run into an issue with the generated Xcode projects. We build this system on Windows, Linux, and

[CMake] xcode-select and CMake -G Xcode

2016-09-15 Thread Harry Mallon
Hello, I saw XCode 8 was released so i duplicated my XCode install and updated it. CMake now fails if I use xcode-select -s to choose the old XCode. It seems that if the XCode path has a space in it it fails. i.e. With "xcode-select -s /Applications/Xcode\ copy.app/Contents/Developer": $ cmak

Re: [CMake] Xcode generator problems

2016-08-23 Thread Robert Bielik
ake@cmake.org >Subject: [CMake] Xcode generator problems > >Hi all, > >I just opened https://gitlab.kitware.com/cmake/cmake/issues/16260, anyone >have ideas how to work around it ? Or if it is fixed in latest & greatest >CMake ? > >Regards >/Robert >-- > >Powe

[CMake] Xcode generator problems

2016-08-22 Thread Robert Bielik
Hi all, I just opened https://gitlab.kitware.com/cmake/cmake/issues/16260, anyone have ideas how to work around it ? Or if it is fixed in latest & greatest CMake ? Regards /Robert -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wik

Re: [CMake] XCode generator and .metal shader files

2016-07-30 Thread Victor Rykov
Thanks for a tip, Cmake generates correct project with regard to shaders if I set LANGUAGE to METAL set_source_files_properties(${MetalTriangle_SHADERS} PROPERTIES LANGUAGE METAL) On Wed, Jul 27, 2016 at 6:03 AM, Gregor Jasny wrote: > Hello, > > On 22/07/16 23:07, Victor Rykov wrote: > > After

Re: [CMake] XCode generator and .metal shader files

2016-07-26 Thread Gregor Jasny via CMake
Hello, On 22/07/16 23:07, Victor Rykov wrote: > After adding a .metal file to a target via add_executable the metal file > does not get pushed to the generated project`s Compile Sources queue and > subsequently does not compile during project build unless I add the file to > the queue manually fro

[CMake] XCode generator and .metal shader files

2016-07-22 Thread Victor Rykov
Hi, After adding a .metal file to a target via add_executable the metal file does not get pushed to the generated project`s Compile Sources queue and subsequently does not compile during project build unless I add the file to the queue manually from Xcode, I`ve tried setting compile flags on the .

[CMake] Xcode, -isystem, and qt5_use_modules

2016-05-17 Thread Breannan Smith
When I generate a makefile project with CMake that calls qt5_use_modules, qt5_use_modules prepends all Qt5 includes with the -isystem flag. If I generate an Xcode project with the same CMakeLists.txt configuration, however, the -isystem flag is not prepended to includes when Xcode builds the projec

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-11 Thread Siyuan Ren
OK, I got it. It worked all the time, but I looked at the wrong scheme/target. On Wed, May 11, 2016 at 3:05 PM, Gregor Jasny wrote: > On 11/05/16 08:40, Siyuan Ren wrote: >> Attached are a minimal demonstration and a screenshot of what Xcode >> shows me when it opens the project. > > This also wo

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-10 Thread Gregor Jasny via CMake
On 10/05/16 01:52, Siyuan Ren wrote: > Version 7.3.1 (7D1014) Could you please share your build and source directory with me? -- 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

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-09 Thread Siyuan Ren
est.cpp) >> ``` >> >> Then generate the Xcode project file with `cmake -G Xcode .`. Open the >> project file in Xcode, and I found the optimization level on all kinds >> of build, including "Debug", "Release", "RelWithDebInfo", >> &quo

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-09 Thread Gregor Jasny via CMake
ct file in Xcode, and I found the optimization level on all kinds > of build, including "Debug", "Release", "RelWithDebInfo", > "MinSizeRel", to be "None (-O0)". > > Do I do something wrong? Or CMake Xcode generator cannot even h

[CMake] Xcode generator results in a project file without optimization

2016-05-02 Thread Siyuan Ren
Debug", "Release", "RelWithDebInfo", "MinSizeRel", to be "None (-O0)". Do I do something wrong? Or CMake Xcode generator cannot even handle the simplest project right? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

Re: [CMake] XCode Generation Issue

2016-01-21 Thread Eric Wing
On 1/21/16, David Morsberger wrote: > Eric, > > I went down a rabbit hole and pulled myself back out. I narrowed it down to > the following. > > We are using cmake to check if the linker supports -Wl,—as-needed. The test > compile (and link?) command cmake builds using ‘cmake -G Xcode’ does not >

Re: [CMake] XCode Generation Issue

2016-01-21 Thread David Morsberger
Eric, I went down a rabbit hole and pulled myself back out. I narrowed it down to the following. We are using cmake to check if the linker supports -Wl,—as-needed. The test compile (and link?) command cmake builds using ‘cmake -G Xcode’ does not fail. The command from ‘cmake -G’ has been narr

Re: [CMake] XCode Generation Issue

2016-01-20 Thread Eric Wing
On 1/20/16, David Morsberger wrote: > >> On Jan 19, 2016, at 10:11 PM, Eric Wing wrote: >> >> On 1/19/16, David Morsberger wrote: >>> Any help would be appreciated. >>> >>> In particular I’d like to know how the default compiler arguments are >>> set >>> when ‘cmake -G Xcode’ is executed. The at

Re: [CMake] XCode Generation Issue

2016-01-20 Thread David Morsberger
> On Jan 19, 2016, at 10:11 PM, Eric Wing wrote: > > On 1/19/16, David Morsberger wrote: >> Any help would be appreciated. >> >> In particular I’d like to know how the default compiler arguments are set >> when ‘cmake -G Xcode’ is executed. The attached file contains the cmake test >> compile

Re: [CMake] XCode Generation Issue

2016-01-19 Thread Eric Wing
On 1/19/16, David Morsberger wrote: > Any help would be appreciated. > > In particular I’d like to know how the default compiler arguments are set > when ‘cmake -G Xcode’ is executed. The attached file contains the cmake test > compile extracted and reformatted from CMakeOutput.log that should hav

Re: [CMake] XCode Generation Issue

2016-01-19 Thread David Morsberger
Any help would be appreciated. In particular I’d like to know how the default compiler arguments are set when ‘cmake -G Xcode’ is executed. The attached file contains the cmake test compile extracted and reformatted from CMakeOutput.log that should have failed. Again, what is setting all the clang

[CMake] XCode Generation Issue

2016-01-18 Thread David Morsberger
I’m having an issue generating and using a XCode project using cmake -G. cmake —version cmake version 3.4.1 Xcode Version 7.2 (7C68) Mac OS 10.11. My CMakeLists.txt has a clang option that fails during the -G Xcode pass but fails when linking within XCode. The compiler / linker option is

[CMake] Xcode build settings and BullseyeCoverage

2015-10-09 Thread Roman Wüger
de.app/Contents/Developer/usr PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform . . . Why doesn’t find CMake Xcode with the modified path? Is there also a way to set generator specific things during configure time? At the moment it is only possibl

[CMake] Xcode Link Binary With Libraries phase

2015-09-28 Thread István Csanády
Hi, I have multiple framework targets in my project, that depend on each other. I add the linking phase using the target_link_libraries command target_link_libraries (${PROJECT_NAME} ${USED_LIBS}) that will create linker flags like this: /Users/icsanady/occt_git/occt/src/TKernel/Debug$(EFFECTIV

Re: [CMake] Xcode project generation failed

2015-06-17 Thread Gregor Jasny via CMake
On 17/06/15 16:29, Michael Jackson wrote: > Just to follow up with this issue in case anyone else has issues with Xcode > here is what happened. Thanks to Gregor for taking a look at the generated > project file he was able to identify an issue where there were file paths in > the form of "//" i

Re: [CMake] Xcode project generation failed

2015-06-17 Thread Michael Jackson
On Jun 16, 2015, at 3:27 PM, Gregor Jasny wrote: > Hello, > > I applied some fixes to what becomes CMake 3.3. could you please test > the release candidate? > > On 16/06/15 16:27, Michael Jackson wrote: >> Running OS X 10.8.5 with Xcode 5.1.1 and Cmake 3.2.x and 3.3.RC and neither >> generate

Re: [CMake] Xcode project generation failed

2015-06-16 Thread Gregor Jasny via CMake
On 16/06/15 21:27, Gregor Jasny wrote: > Hello, > > I applied some fixes to what becomes CMake 3.3. could you please test > the release candidate? Sorry, somehow overlooked the statement about RC in your mail. > On 16/06/15 16:27, Michael Jackson wrote: >> Running OS X 10.8.5 with Xcode 5.1.1 an

Re: [CMake] Xcode project generation failed

2015-06-16 Thread Gregor Jasny via CMake
Hello, I applied some fixes to what becomes CMake 3.3. could you please test the release candidate? On 16/06/15 16:27, Michael Jackson wrote: > Running OS X 10.8.5 with Xcode 5.1.1 and Cmake 3.2.x and 3.3.RC and neither > generate a Xcode project file that can be opened by Xcode. We get valid Ni

[CMake] Xcode project generation failed

2015-06-16 Thread Michael Jackson
Running OS X 10.8.5 with Xcode 5.1.1 and Cmake 3.2.x and 3.3.RC and neither generate a Xcode project file that can be opened by Xcode. We get valid Ninja and Makefile projects for our project. I was wondering if anyone else has seen this issue. Not sure if there is something in our project that

Re: [CMake] Xcode Runpath problem

2015-03-20 Thread Robert Bielik
Ok, I escaped the string as "\"~/Library/Application Support/MyTarget/Plugins\"", and then it comes out OK to the linker. However... it doesn't work. Dylib dependencies are not found, whereas in the Xcode IDE, they are! :( :( :( About to jump from a very high place. Help ? /Rob Robert Bieli

[CMake] Xcode Runpath problem

2015-03-20 Thread Robert Bielik
Hi, I have: SET_TARGET_PROPERTIES(MyTarget PROPERTIES XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "~/Library/Application Support/MyTarget/Plugins") and it comes through nicely when running the Xcode IDE, but when using cmake build (cmd line), the linker gets this: -Xlinker -rpath -Xlinker ~/L

Re: [CMake] Xcode generator ignores shared library made of object libraries

2015-03-09 Thread Gregor Jasny
Hello Pere, On 09/03/15 12:59, Pere Mato Vila wrote: I am using cmake version 3.1.3 on MacOSX 10.10.2. I want to build a SHARED library made exclusively of OBJECT libraries. This works well with the Makefile generator but fails with the Xcode generator. To reproduce the problem is very s

[CMake] Xcode generator ignores shared library made of object libraries

2015-03-09 Thread Pere Mato Vila
Hi, I am using cmake version 3.1.3 on MacOSX 10.10.2. I want to build a SHARED library made exclusively of OBJECT libraries. This works well with the Makefile generator but fails with the Xcode generator. To reproduce the problem is very simple: cmake_minimum_required(VERSION 2.8.8 FATAL_E

Re: [CMake] Xcode does not link against frameworks

2015-01-26 Thread Parag Chandra
y 25, 2015 at 7:43 AM To: "cmake@cmake.org<mailto:cmake@cmake.org>" mailto:cmake@cmake.org>> Subject: Re: [CMake] Xcode does not link against frameworks I took a closer look at the problem and while as I said the libraries are correctly found, when I look at the project file, I se

Re: [CMake] Xcode does not link against frameworks

2015-01-25 Thread Daniel Kollmann
I took a closer look at the problem and while as I said the libraries are correctly found, when I look at the project file, I see this: OTHER_LDFLAGS = " -Wl,-search_paths_first -Wl,-headerpad_max_install_names -framework Accelerate -framework Accelerate -framework Accelerate -framework Accelerate

[CMake] Xcode does not link against frameworks

2015-01-24 Thread Daniel Kollmann
Hello, I add my required frameworks through this function of mine: function(add_framework target framework) if(APPLE) find_library(found ${framework}) if(${found} STREQUAL "${framework}-NOTFOUND³) message(FATAL_ERROR "ERROR: ${framework} not found (${CMAKE_OSX_SYS

Re: [CMake] Xcode strip linked product

2015-01-19 Thread Robert Bielik
Ok, my bad, I found the place where it is set, via: SET_TARGET_PROPERTIES(mytarget PROPERTIES XCODE_ATTRIBUTE_STRIP_INSTALLED_PRODUCT “YES”) However, I’d need to set it per, so something like SET_TARGET_PROPERTIES(mytarget PROPERTIES XCODE_ATTRIBUTE_STRIP_INSTALLED_PRODUCT_DEBUG "NO”) It does

[CMake] Xcode strip linked product

2015-01-19 Thread Robert Bielik
Hi all, Using CMake 3.0.1, when generating for Xcode, the setting Strip linked product is set to Yes for ALL targets (Debug/Release…), which of course disables any possibility to debug. How can I make CMake set this to NO for Debug ? TIA /Rob -- Powered by www.kitware.com Please keep messa

Re: [CMake] xcode generator's use of explicitFileType vs lastKnownFileType

2014-12-19 Thread Radu Margarint
I didn't know about includeInIndex, but I just tried it and it does nothing. To clarify something, the xcode freeze is not a drastic slowdown at indexing time. It's a complete halt at project open time, before the UX even those up. XCode is completely unresponsive doing a ton of [PBXFileReference _

Re: [CMake] xcode generator's use of explicitFileType vs lastKnownFileType

2014-12-19 Thread Gregor Jasny
Hi, On 18/12/14 23:59, Radu Margarint wrote: > I hope I'm asking this in correct place. I have recently been running > into some issues using the xcode project files generated though cmake, > and I have traced them down to PBXFileReference nodes using > explicitFileType attributes (vs lastKnownFil

Re: [CMake] xcode generator's use of explicitFileType vs lastKnownFileType

2014-12-18 Thread Eric Wing
On 12/18/14, Radu Margarint wrote: > Greetings, > > I hope I'm asking this in correct place. I have recently been running > into some issues using the xcode project files generated though cmake, > and I have traced them down to PBXFileReference nodes using > explicitFileType attributes (vs lastKno

[CMake] xcode generator's use of explicitFileType vs lastKnownFileType

2014-12-18 Thread Radu Margarint
Greetings, I hope I'm asking this in correct place. I have recently been running into some issues using the xcode project files generated though cmake, and I have traced them down to PBXFileReference nodes using explicitFileType attributes (vs lastKnownFileType). The projects generated are some f

Re: [CMake] Xcode generator per architecture setting

2014-10-30 Thread thehesiod
Bin Chen wrote > Hi, > > For Xcode generator, is it possible to specify CFLAGS for each > architecture, e.g. i386 and x86_64? Thanks! > > Best regards, > Bin Chen I used to set set_target_properties(${DRM_TARGET_NAME} PROPERTIES XCODE_ATTRIBUTE_OTHER_CFLAGS[arch=${_NATIVE_ARCH}] "${MY_OTHER_CFLA

[CMake] Xcode "CMake PreLink Rules" does not happen before the linker is called?

2014-10-29 Thread Andrew Lee
Hi, We have successfully ported our build scripts to a cross-platform CMake setup recently but there is just one thing we could not get right. We have a PRELINK build phase that needs to execute before linking. This works for generated Visual Studio projects and make scripts but not for Xcode gene

Re: [CMake] CMake, Xcode, and Intel Fortran? (digitalriptide)

2014-10-24 Thread Zaak Beekman
elp' to > cmake-requ...@cmake.org > > You can reach the person managing the list at > cmake-ow...@cmake.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of CMake digest..." > > > Today's

[CMake] CMake, Xcode, and Intel Fortran?

2014-10-23 Thread digitalriptide
with CMake, Xcode, or the Intel suite? Cheers! -- 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

[CMake] Xcode generator per architecture setting

2014-10-06 Thread Bin Chen
Hi, For Xcode generator, is it possible to specify CFLAGS for each architecture, e.g. i386 and x86_64? Thanks! Best regards, Bin Chen Notice: This message and any included attachments are intended only for the use of the addressee, and may contain information

[CMake] xcode: rebuild project when dirty

2014-04-20 Thread Tim Blechmann
hi all, the make/ninja files and visual studio project seem to be rebuilt automatically when some CMakeLists.txt files change. this does not seem to be the case for xcode projects, though. to regenerate the project, i need to buid the ZERO_CHECK target explicitly. is this a bug or a feature? thn

Re: [CMake] Xcode cannot open generated project

2014-02-27 Thread Kyle Sluder
On Thu, Feb 27, 2014, at 06:35 AM, David Cole wrote: > Anybody else out there using Xcode 5.0.2 with CMake yet? Yes, I'm using LLVM's CMake-generated xcodeproj with Xcode 5.0.2. But I haven't tried regenerating the xcodeproj since upgrading. --Kyle Sluder -- Powered by www.kitware.com Please k

Re: [CMake] Xcode cannot open generated project

2014-02-27 Thread Sean McBride
On Thu, 27 Feb 2014 09:35:09 -0500, David Cole said: >Anybody else out there using Xcode 5.0.2 with CMake yet? This dashboard of mine is using Xcode 5.0.2 under OS X 10.9: It's basically green. Cheers, -- __

Re: [CMake] Xcode cannot open generated project

2014-02-27 Thread David Cole
Anybody else out there using Xcode 5.0.2 with CMake yet? Perhaps open a bug report, and attach the generated Xcode project files. Or send a minimal CMakeLists.txt file that reproduces the problem. Does it happen with the very simplest CMakeLists file? (For example, the one from the tutorial te

Re: [CMake] Xcode cannot open generated project

2014-02-27 Thread Bogdan Cristea
On 27 Feb 2014, at 12:15, David Cole wrote: > What version of Xcode? xcode 5.0.2 > > What error message do you get when trying to open the project with Xcode? The error says that ’the project file cannot be parsed'-- Powered by www.kitware.com Please keep messages on-topic and check the

Re: [CMake] Xcode cannot open generated project

2014-02-27 Thread David Cole
You can search the bug tracker http://public.kitware.com/Bug for known CMake bugs related to Xcode... I don't recall anything like this being reported recently. What version of Xcode? What error message do you get when trying to open the project with Xcode? D -- Powered by www.kitware.co

[CMake] Xcode cannot open generated project

2014-02-27 Thread Bogdan Cristea
Hi I am using cmake 2.8.12.2 on MacOSX 10.9 for managing C/C++ code. Targets are 2 shared libraries and a command line binary, while external libraries are boost and fuse. However, when using Xcode generator I am unable to open the generated project. Using Makefile generator works fine, but I h

[CMake] Xcode settings

2013-10-08 Thread Giordano Khouri
Why is there no way to default certain Xcode settings like ARCHS? If I unset CMAKE_OSX_ARCHITECTURES or set it to an empty string, I get an override of 32 and 64-bit instead of no setting which would use the default of 64-bit only. CONFIDENTIAL: This e-mail including any attachments is intende

[CMake] Xcode option to attribute

2013-10-08 Thread Giordano Khouri
The MSVC generators will convert additions to the compiler flags into project settings that are visible in their normal GUI project editor location rather than the Additional Command Line Option area. It would be great if the Xcode generator would do this also. CONFIDENTIAL: This e-mail inclu

[CMake] Xcode iOS build

2013-09-05 Thread Pierre Aufrère
Hi,I'm trying to use CMake to configure Xcode to build for iOS. So far, i've managed to do all the necessary configuration and the compilation is successful. Unfortunately, I can't launch on the simulator, when i launch, Xcode just stops running the app, and the simulator is crashed, I then have to

Re: [CMake] Xcode generator : is it commonly used ?

2013-09-03 Thread Nicolas Desprès
On Mon, Sep 2, 2013 at 11:26 PM, Nicholas Yue wrote: > Hi, > > I have been using CMake for a couple of years on the Windows, Linux > and OS X platform. (c++ development) > > In the last 12 months or so, I have found that I can no longer > generate usable XCode files, I have been monitoring

Re: [CMake] Xcode generator : is it commonly used ?

2013-09-03 Thread Sean McBride
On Tue, 3 Sep 2013 07:26:44 +1000, Nicholas Yue said: > I am currently on OS X 10.7 and am wondering if there are other >developer on the same OS version and XCode 4.4.1 and have success with >that tool chain and hope to learn the correct work flow since the >changes at Apple with the move

Re: [CMake] Xcode generator : is it commonly used ?

2013-09-03 Thread Bill Hoffman
On 9/2/2013 5:26 PM, Nicholas Yue wrote: Hi, I have been using CMake for a couple of years on the Windows, Linux and OS X platform. (c++ development) In the last 12 months or so, I have found that I can no longer generate usable XCode files, I have been monitoring the situation and tr

[CMake] Xcode generator : is it commonly used ?

2013-09-02 Thread Nicholas Yue
Hi, I have been using CMake for a couple of years on the Windows, Linux and OS X platform. (c++ development) In the last 12 months or so, I have found that I can no longer generate usable XCode files, I have been monitoring the situation and trying to determine what I have change or

Re: [CMake] Xcode generator fails to heed add_custom_command() DEPENDS

2013-07-14 Thread Paul Smith
On Sun, 2013-07-14 at 19:35 +, David Cole wrote: > > DEPENDS ${targetname} > > Instead of using a targetname here in the add_custom_command call, use > a file name. That’s known to work with the Xcode generator. (I > think... it’s been a while since I did it personally using Xcode, but >

[CMake] XCode equivalent to include_external_msproject

2013-06-13 Thread Jon Hodgson
Hi, I'm currently converting some cross platform projects to CMake, for easier maintainance in the future. They use some third party libraries, which it's easier for me to NOT convert to CMake (because then I have to update that when the third party changes their projects), these are built using

Re: [CMake] Xcode Archiving on iOS and OSX

2012-12-17 Thread Jamie Hales
I've got a little further with this over the weekend. By doing a "Product->Build For->Archiving" before "Product->Archive" seems to build the xcode archives into the correct location, I'm not sure why this is the case. Regardless, that allows it to link correctly. The problem then is it by defau

Re: [CMake] Xcode Archiving on iOS and OSX

2012-12-14 Thread Jamie Hales
Apologies, I hit send before I was ready - I tried setting various attributes - set(CMAKE_XCODE_ATTRIBUTE_INSTALL_PATH "test") set(LIB_INSTALL_DIR, ${CMAKE_INSTALL_PREFIX}) set(LIBRARY_OUTPUT_DIRECTORY, ${CMAKE_INSTALL_PREFIX}) But this doesn't seem to make any difference. Is anyone aware of a

[CMake] Xcode Archiving on iOS and OSX

2012-12-14 Thread Jamie Hales
Hi, I'm currently trying to change my existing multiple project setup (manually maintaining makefiles, vsproj and xcodeproj) for a single cmake solution. So far it's going well, I have the OSX and iOS targets up and running correctly when running directly on the device, but I'm having issues w

[CMake] Xcode build attribute

2012-12-07 Thread Ambreen
How do I set a build attribute GCC_INPUT_FILE_TYPE for an xcode target. Ive tried set and add_definition but it always shows as "according yo file type" once the project is generated. Sent from my iPhone -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kit

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-17 Thread Bill Hoffman
On 7/17/2012 2:41 PM, Sean McBride wrote: On Tue, 17 Jul 2012 14:22:20 -0400, Bill Hoffman said: Not that I know of. That would be analogous to...? What would it do? In VS it setups the environment to run CC from the command line. For now, I've created this bug: CMake should support def

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-17 Thread Sean McBride
On Tue, 17 Jul 2012 14:22:20 -0400, Bill Hoffman said: >> Not that I know of. That would be analogous to...? What would it do? > >In VS it setups the environment to run CC from the command line. > >> >> For now, I've created this bug: >> >> CMake should support default installation of Xcode.app

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-17 Thread Bill Hoffman
On 7/17/2012 1:38 PM, Sean McBride wrote: On Fri, 13 Jul 2012 11:03:02 -0400, Bill Hoffman said: I am guessing some of the tools will not run without proper environments set. So, running the command line compilers will not work by doing lots of calls to xcrun -find Think, ld, ar, gcc, g++

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-17 Thread Sean McBride
On Fri, 13 Jul 2012 11:03:02 -0400, Bill Hoffman said: >I am guessing some of the tools will not run without proper environments >set. So, running the command line compilers will not work by doing lots >of calls to xcrun -find Think, ld, ar, gcc, g++, cfront, and all >the other stuff you

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-13 Thread Bill Hoffman
On 7/13/2012 10:49 AM, Sean McBride wrote: $ xcrun -find make /Applications/Xcode.app/Contents/Developer/usr/bin/make >Most of this is just a rant Much of Apple's recent behaviour is very rant worthy, IMNSHO. I am guessing some of the tools will not run without proper environments set. So, r

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-13 Thread Sean McBride
On Fri, 13 Jul 2012 10:18:38 -0400, Bill Hoffman said: >> xcrun make --version > >That is so totally stupid > >What were they thinking at Apple... I'm not privy to their thinking but... one advantage to this approach is the ability to have multiple versions of Xcode installed. I have the cu

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-13 Thread Bill Hoffman
On 7/12/2012 5:13 PM, David Cole wrote: xcrun make --version That is so totally stupid What were they thinking at Apple... Are you going to have to type "osrun ls" to get ls in the future? Maybe it is more like MS VS studio now. You have to run xcvars to be able to compile from the com

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-12 Thread David Cole
On Thu, Jul 12, 2012 at 4:55 PM, Sean McBride wrote: > Hi all, > > Nowadays, Xcode is distributed as a standalone .app instead of an > installer that copies files all over the place. As a consequence of this, > nothing gets installed at /usr/bin/make, /usr/bin/cc, etc. > > Optionally, one can ins

[CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-12 Thread Sean McBride
Hi all, Nowadays, Xcode is distributed as a standalone .app instead of an installer that copies files all over the place. As a consequence of this, nothing gets installed at /usr/bin/make, /usr/bin/cc, etc. Optionally, one can install a separate 'command line tools' package that places things

[CMake] Xcode generation, transformation of framework includes to -F

2012-06-20 Thread James Turner
I've encountered a problem with OSX framework detection, I think exposed due to updating to Xcode 4.3.3 (was previously using 4.3.2), though I'm sure the real issue is actually in my cmake-files. It appears that /Library/Frameworks is no longer searched by default (this makes sense for better S

[CMake] Xcode CMAKE_OSX_SYSROOT per target

2012-04-06 Thread marius
Hello, I have a project that has components for both iOS and OSX. I could do that in Xcode by having multiple targets and changing the Base SDK and the architecture. I was wandering if there is a way to set CMAKE_OSX_SYSROOT and CMAKE_OSX_ARCHITECTURES for each target. I even tried making a CMak

Re: [CMake] XCode generator hangs when writing build config.

2012-01-05 Thread Axel Roebel
On 05/01/2012 01:56, David Cole wrote: >> Wow. Nice, quick work. >> > >> > Thanks for the patch. I'll get it applied and pushed to our 'next' >> > branch so this can get into the next release... >> > >> > >> > Thanks, >> > David > Hmmm. I've downloaded the source from SourceForge, but do not > repr

Re: [CMake] XCode generator hangs when writing build config.

2012-01-05 Thread Domagoj Saric
On 4.1.2012. 17:05, David Cole wrote: What project are you running through CMake? Is it available for us to try to reproduce here? I've not heard of anything like this... Actually we've been bitten by this also: ever since 2.8.6 CMake would hang in the generate phase on OS X. However it only

Re: [CMake] XCode generator hangs when writing build config.

2012-01-04 Thread David Cole
On Wed, Jan 4, 2012 at 1:14 PM, David Cole wrote: > On Wed, Jan 4, 2012 at 12:36 PM, Axel Roebel wrote: >> On 4/1/12 5:05 PM, David Cole wrote: >>> What project are you running through CMake? Is it available for us to >>> try to reproduce here? >> >> It is the SDIF/EASDIF_SDIF project that is on

Re: [CMake] XCode generator hangs when writing build config.

2012-01-04 Thread David Cole
On Wed, Jan 4, 2012 at 12:36 PM, Axel Roebel wrote: > On 4/1/12 5:05 PM, David Cole wrote: >> What project are you running through CMake? Is it available for us to >> try to reproduce here? > > It is the SDIF/EASDIF_SDIF project that is on sourceforge. > http://sourceforge.net/projects/sdif/files/

Re: [CMake] XCode generator hangs when writing build config.

2012-01-04 Thread Axel Roebel
On 4/1/12 5:05 PM, David Cole wrote: > What project are you running through CMake? Is it available for us to > try to reproduce here? It is the SDIF/EASDIF_SDIF project that is on sourceforge. http://sourceforge.net/projects/sdif/files/Easdif/ > I've not heard of anything like this... Thanks for

Re: [CMake] XCode generator hangs when writing build config.

2012-01-04 Thread David Cole
What project are you running through CMake? Is it available for us to try to reproduce here? I've not heard of anything like this... Can you use Activity Monitor to inspect the process and grab a sample showing a call stack of what's happening when it's "hung"? Does CMake have any child processe

[CMake] XCode generator hangs when writing build config.

2012-01-04 Thread Axel Roebel
Hello I just upgraded from 2.8.1 to 2.8.6 to be able to use the recently added generator expressions in add_custom_command. Unfortunately, whenever I try to generate a project for Xcode (Mac OSX 10.6.8, Xcode 3.2.6) the project generator (command line as well as gui) hangs in the last phase when i

Re: [CMake] XCode post-build processing?

2011-12-03 Thread g...@novadsp.com
Thanks Michael. Now how do I make 'copy' copy a Mac .app bundle? copy file simply creates an empty directory call mac.app and copy directory refuses to obey. Thx++ On 02/12/2011 05:43, Michael Wild wrote: On 12/01/2011 11:24 PM, g...@novadsp.com wrote: How can I get the same effect as the V

Re: [CMake] XCode post-build processing?

2011-12-01 Thread Michael Wild
On 12/01/2011 11:24 PM, g...@novadsp.com wrote: > How can I get the same effect as the Visual Studio post-build rules? > Nothing too fancy, just copy and zip files into a /dist directory. > > Thx++ > Are you looking for the add_custom_command(TARGET ... POST_BUILD ...) signature? Michael -- P

[CMake] XCode post-build processing?

2011-12-01 Thread g...@novadsp.com
How can I get the same effect as the Visual Studio post-build rules? Nothing too fancy, just copy and zip files into a /dist directory. Thx++ -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-25 Thread g...@novadsp.com
Thanks. On 25/11/2011 14:52, Michael Wild wrote: On 11/25/2011 03:40 PM, g...@novadsp.com wrote: [ Fixed TOFU ] On 24/11/2011 22:22, Michael Hertling wrote: On 11/24/2011 07:08 PM, g...@novadsp.com wrote: How can I do this? Specifically generating for XCode. -- Powered by www.kitware.com

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-25 Thread Michael Wild
On 11/25/2011 03:40 PM, g...@novadsp.com wrote: [ Fixed TOFU ] > On 24/11/2011 22:22, Michael Hertling wrote: >> On 11/24/2011 07:08 PM, g...@novadsp.com wrote: >>> How can I do this? Specifically generating for XCode. >>> >>> My cmakefile has this: >>> >>> if (${CMAKE_CFG_INTDIR} STREQUAL "Debug")

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-25 Thread g...@novadsp.com
I forgot to aks - what is the recommended way of adding multiple definitions? i.e. /D_DEBUG /D_NO_GZIP? Thx++ On 24/11/2011 22:22, Michael Hertling wrote: On 11/24/2011 07:08 PM, g...@novadsp.com wrote: How can I do this? Specifically generating for XCode. My cmakefile has this: if (${CMAKE

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar? [solved]

2011-11-24 Thread g...@novadsp.com
Michael, *thanks*. This works exactly as hoped with CMake 2.8.6 on Snow Leopard. Kudos. On 24/11/2011 22:22, Michael Hertling wrote: SET_DIRECTORY_PROPERTIES(PROPERTIES COMPILE_DEFINITIONS_DEBUG _DEBUG) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.k

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-24 Thread Michael Hertling
On 11/24/2011 07:08 PM, g...@novadsp.com wrote: > How can I do this? Specifically generating for XCode. > > My cmakefile has this: > > if (${CMAKE_CFG_INTDIR} STREQUAL "Debug") > Message("We are generating/building debug code for ${this_target}") > ADD_DEFINITIONS(/D_DEBUG) > endif() > > But _DE

[CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-24 Thread g...@novadsp.com
How can I do this? Specifically generating for XCode. My cmakefile has this: if (${CMAKE_CFG_INTDIR} STREQUAL "Debug") Message("We are generating/building debug code for ${this_target}") ADD_DEFINITIONS(/D_DEBUG) endif() But _DEBUG is never defined. This question comes up twice on StackOverflo

Re: [CMake] cmake / xcode / c++ header files [solved]

2011-11-22 Thread g...@novadsp.com
DE_SOURCE_PROPERTIES( "include" "${${this_target}_HEADER_FILES}" "${this_target}_SOURCE_FILES" TRUE) This seems to need CMake 2.8.6 to really work well. -- Mike Jackson On Nov 22, 2011, at 8:42 AM, g...@novadsp.com wrote: How can I get the cmake xcode generator to

Re: [CMake] cmake / xcode / c++ header files

2011-11-22 Thread Michael Jackson
s_target}_SOURCE_FILES" TRUE) This seems to need CMake 2.8.6 to really work well. -- Mike Jackson On Nov 22, 2011, at 8:42 AM, g...@novadsp.com wrote: > How can I get the cmake xcode generator to add a /include folder to generated > projects? The cmakelists contain

[CMake] cmake / xcode / c++ header files

2011-11-22 Thread g...@novadsp.com
How can I get the cmake xcode generator to add a /include folder to generated projects? The cmakelists contain these directives: SET(${this_target}_HEADER_FILES ./a.h ./b.h) SET_SOURCE_FILES_PROPERTIES(${this_target}_HEADER_FILES PROPERTIES HEADER_FILE_ONLY TRUE) LIST(APPEND ${this_target

  1   2   3   4   >