[CMake] Patch for CM_OVERRIDE

2016-06-28 Thread Roman Wüger
Hello, I've attached a patch for the CM_OVERRIDE commit Best Regards Roman 0001-fixup-CM_OVERRIDE-Visual-Studio-2010-and-below-do-no.patch Description: Binary data -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Raymond Wan
On Wed, Jun 29, 2016 at 3:23 AM, Cfyz wrote: > On 28 June 2016 at 17:19, Raymond Wan wrote: >> I think if I were presented with the same problem as Sven, I'd <...> Or, >> if that wasn't possible, use ExternalProject. >> It's inefficient in terms of disk space, but at least A (assuming A >> depend

Re: [CMake] [iOS] What is the correct way to add resources to an XCode project

2016-06-28 Thread Ruslan Baratov via CMake
Hi, I have used two approaches which is not based on assets directories. First is to save icons to resources with special names. In this case Xcode will add them automatically, see: * https://github.com/forexample/testapp/blob/9202304134862f043af740af27dc7efb3b3f565d/CMakeLists.txt#L28 Secon

[CMake] CMAKE_C_COMPILE_OBJECT vs

2016-06-28 Thread Sam Cristall
I'm trying to implement a cross compilation wrapper and hit a snag with CMAKE_C_COMPILE_OBJECT. I've found that on OSX / Linux (Makefile Generator), and work as expected, however on Windows (MinGW Makefile Generator), has both the flags and includes, whereas is undefined. Is this expected

Re: [CMake] Dependency on imported target with ninja-generator

2016-06-28 Thread Patrick Boettcher
On Wed, 22 Jun 2016 19:44:14 -0500 Nicholas Braden wrote: > If Project B depends on Project A, you should probably be using the > ExternalProject module with a superproject structure that builds both > projects in the proper order. > > https://cmake.org/cmake/help/latest/module/ExternalProject.h

Re: [CMake] [iOS] What is the correct way to add resources to an XCode project

2016-06-28 Thread Roman Wüger
No one? The target property RESOURCE does only allow files but no directories. Regards Roman > Am 22.06.2016 um 17:22 schrieb Roman Wüger : > > Hello, > > I read the mailing list but did find a way which works. > > At the moment I use Xcode 7.3.1 and CMake 3.5.2 which creates a project for

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Cfyz
Hello Sven, Raymond. On 28 June 2016 at 16:07, Sven Baars wrote: > Hence my question if there is some "right" way of doing this with CMake, without all of the code I wrote to work around the problem. I am under impression there is an important bit missing from CMake export system. If some librar

Re: [CMake] [Visual Studio] Is it possible to specify a different target architecture?

2016-06-28 Thread Hendrik Sattler
Hi, Yes, it is possible. Generate the solution for Visual Studio 11 2012 and open it in VS2015. VS will ask you once if to convert the project and you say no. Done. HS Am 28. Juni 2016 15:51:47 MESZ, schrieb Adam Rankin : >Hello all, > >I am wondering if there exist CMake commands/variables to

Re: [CMake] [Visual Studio] Is it possible to specify a different target architecture?

2016-06-28 Thread Greg Marr
From: CMake mailto:cmake-boun...@cmake.org>> on behalf of Adam Rankin mailto:aran...@robarts.ca>> Date: Tuesday, June 28, 2016 at 9:51 AM To: "cmake@cmake.org" mailto:cmake@cmake.org>> Subject: [CMake] [Visual Studio] Is it possible to specify a different target architect

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Raymond Wan
Hi, On Tue, Jun 28, 2016 at 8:41 PM, Cfyz wrote: > dependencies' locations. Personally I do not agree with that as I see > neither any way around specifying paths to dependencies not any substantial > harm in that. Maybe I am missing something but as far as I've found there > was not discussion

Re: [CMake] [Visual Studio] Is it possible to specify a different target architecture?

2016-06-28 Thread Adam Rankin
Well now don’t I feel silly… Thanks! Adam From: Benjamin Ballet [mailto:bbal...@ivsweb.com] Sent: Tuesday, June 28, 2016 9:59 AM To: Adam Rankin Cc: cmake@cmake.org Subject: Re: [CMake] [Visual Studio] Is it possible to specify a different target architecture? Hi Look at the CMAKE_VS_PLATFO

Re: [CMake] [Visual Studio] Is it possible to specify a different target architecture?

2016-06-28 Thread Benjamin Ballet via CMake
Hi Look at the CMAKE_VS_PLATFORM_TOOLSET variable 2016-06-28 15:51 GMT+02:00 Adam Rankin : > Hello all, > > > > I am wondering if there exist CMake commands/variables to specify for > Visual Studio to have the project f

[CMake] [Visual Studio] Is it possible to specify a different target architecture?

2016-06-28 Thread Adam Rankin
Hello all, I am wondering if there exist CMake commands/variables to specify for Visual Studio to have the project file(s) generated target a different architecture than the one associated with that version of Visual Studio. For example, I develop in VS2015, but would like to target the VS2012

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Sven Baars
Hey Cfyz, After reading your post to the list, it does indeed seem like we have the same problem. I also wrote a lot of homebrew code you mentioned at the end of the post, but it indeed always seems to always break something for some user of the code, even though it seems to work for everyone else

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Cfyz
Hello. I've posted a message a few days ago on a very similar subject. Didn't know there was a discussion already. The main problem in my opinion is that CMake target exporting system does not handle transitive dependencies at all. CMake handles them correctly at the build step, but not at the ex

[CMake] CMake Windows Visual Studio 14 problems

2016-06-28 Thread Simon Ricaldone
Hello Firstly I am very new to CMake, C and Visual Studio so please excuse my ignorance! My problem is I am trying to convert an old Visual Studio 6 project into a Visual Studio 14 2015 solution using CMake, however I am having difficulties settings compiler flags. I have been unable to find

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Sven Baars
Hey Ray, Project A is used by many projects, and so is project B. So ExternalProject is not the right solution. I just want to be able to fix project B in such a way that people, including myself, can easily use it without knowledge of where project A is located. The packages will all be used most

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Raymond Wan
Hi Sven, On Tue, Jun 28, 2016 at 6:03 PM, Sven Baars wrote: > The packages I use are installed in a non-standard path, because I don't > have access to the system directories on most systems I work on, but are > used by many other libraries. They are also all separate packages, not > packages in

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Sven Baars
Hi Ray, The packages I use are installed in a non-standard path, because I don't have access to the system directories on most systems I work on, but are used by many other libraries. They are also all separate packages, not packages in the same source tree. I did not see my attachment on the mail

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Raymond Wan
Hi Sven, On Tue, Jun 28, 2016 at 5:26 PM, Sven Baars wrote: > Hey all, > > Since I did not receive a reply to my previous mail, I decided to write a > minimal example explaining my problem, where I kept al the names as I used > in my previous mails. I hope that after seeing my example, someone c

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Sven Baars
Hey all, Since I did not receive a reply to my previous mail, I decided to write a minimal example explaining my problem, where I kept al the names as I used in my previous mails. I hope that after seeing my example, someone can explain me what I am doing wrong here. I included a script that repro