[cmake-developers] [PATCH] Only search for install_name_tool if the toolchain has it

2014-07-01 Thread Florent Castelli
When cross compiling, toolchains won't have install_name_tool, which is provided by Xcode and command line tools on OSX. This is a Mach-O specific utility and not required on all platforms. --- Modules/CMakeFindBinUtils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[cmake-developers] iOS support

2014-09-23 Thread Florent Castelli
Hi! My company is organizing soon a hack week where each employee is able to work on any project he wants. So, I've decided to work with Cmake and improve support for iOS to help the product team getting rid of manual project files, constant merge conflicts and bad project file documentation,

Re: [cmake-developers] iOS support

2014-09-23 Thread Florent Castelli
On 23 Sep 2014, at 16:56, Bill Hoffman bill.hoff...@kitware.com wrote: That said it would be really cool to beef up the xcode support enough to be able to create an actual ios app. I have not dug into that enough. Should be able to do most of it with CMAKE_XCODE_ATTRIBUTE. I will look

Re: [cmake-developers] iOS support

2014-10-01 Thread Florent Castelli
Thanks for the detailed information. My hackweek starts on Monday and I'll start working on these issues then. I'll work on finding a way to unify toolchain files for simulator and devices first. I don't think I'll try to work on iOS8 features since my company is shipping for iOS6 and there are so

Re: [cmake-developers] A CMAKE_EMULATOR variable

2015-03-04 Thread Florent Castelli
Sometimes, it’s not just about an emulator but a wrapper script that can run the target binary on a remote host or with the right environment (or use valgrind, helgrind, whatevergrind...). I’d be nice to have the option in ctest to use some script to run a test program and an option to set it

[cmake-developers] Custom commands with Ninja on Windows

2015-06-12 Thread Florent Castelli
Hi! I'm having some issues with Ninja on Windows with long custom commands (or actually a long succession of short commands appended to the same target). The problem is that they get concatenated in one single command using and it is pretty easy to go over the 8k command line size limit on

Re: [cmake-developers] Custom commands with Ninja on Windows

2015-06-15 Thread Florent Castelli
Alright, I'll see what I can do when I find some free time to work on this then! /Florent On Mon, Jun 15, 2015 at 3:14 PM, Brad King brad.k...@kitware.com wrote: On 06/12/2015 06:01 AM, Florent Castelli wrote: So I've been thinking that on Windows, instead of concatenating everything, we

Re: [cmake-developers] NMake Batch-Mode Rules (was: Inquiry on contribution to NMake generator)

2015-06-01 Thread Florent Castelli
At my company, we didn’t bother trying to use NMake. We used the Visual Studio solution generator and the proper compilation flags and msbuild flags to build in parallel. This proved to speedup our builds quite a lot and was very easy to integrate. The other solution you mentioned is “ninja” and

Re: [cmake-developers] FindPython.cmake alternative for FindPythonInterp.cmake and FindPythonLibs.cmake

2015-06-30 Thread Florent Castelli
I just want to add that I also saw a colleague running in the issue described in the beginning of the thread and that the version reported by the Python module and the PythonLibs one were different strings, even though the version was actually the same. It happened on latest Debian I think. How I

Re: [cmake-developers] Listing source-tree files encountered

2015-07-18 Thread Florent Castelli
I've used that once and you end up with the relative path to the sources from the CMakeLists.txt. If you're in another CMakeLists.txt, then you can't use the paths directly. I tried a few properties but I couldn't find any property to get the folder where the target was defined. How do you

Re: [cmake-developers] [PATCH] FindBoost: Add imported targets

2015-11-16 Thread Florent Castelli
It’s nice and I was thinking of doing the same! But one there’s one thing that comes to mind. Some compiled libraries have dependencies on other compiled libraries. Don’t you think it would make sense to teach FindBoost about those so we link everything properly? And also maybe add the native

Re: [cmake-developers] Toward a more deterministic ninja generator

2016-06-15 Thread Florent Castelli
To this, I would add that you could also remove duplicates. They’re rare but can happen in some conditions and trigger warnings in Ninja. /Florent > On 14 Jun 2016, at 17:18, Nicolas Desprès wrote: > > Hi, > > While working on something else I wrote this patch: >

Re: [cmake-developers] New module to verify that python libraries are available on the system

2016-05-03 Thread Florent Castelli
"exec(\"import sys\\ntry:\\n import numpy\\nexcept:\\n sys.exit(0)\\nsys.exit(1)\")" This seems to be great to check that numpy exists! You're probably missing a variable somewhere ;) /Florent On 03/05/2016 20:37, Francois Budin wrote: Hello everyone, I wrote a short macro for one

Re: [cmake-developers] [PATCH] Use full path for all source files in ninja build.

2016-08-06 Thread Florent Castelli
I'd say that you shouldn't do this unless you have tested it extensively with very long command lines, making sure that there is a response file fallback if it grows too much. There are issues in CMake already on Windows with long command lines and having even longer ones is not going to help.

Re: [cmake-developers] Need ideas/opinions on third party library management

2016-08-16 Thread Florent Castelli
At Spotify, we use CMake a lot for our large C++ library shared by all the clients. After trying to build libraries for each platform and variant, we basically gave up and we now use a super-build approach. For example, Boost is used by 5 platforms: Windows, OSX, Linux, Android and iOS. Each

Re: [cmake-developers] [Discussion] Add python support for CMakeLists

2017-01-16 Thread Florent Castelli
Well, CMake scripts can be written in a somewhat declarative form now. What prevents this now is that a lot of people use indirections everywhere. For example: add_library(foo STATIC ${SRCS}) If it was a plain list, any decent IDE would be able to parse this and add another file to the list

Re: [cmake-developers] [Discussion] Add python support for CMakeLists

2017-01-16 Thread Florent Castelli
> > It's up to users to use generator expressions instead of if(WIN32) or > whatever: > > add_library(foo > foo.cpp > $<$:foo_win.cpp> > ) > > This has been possible for years and was designed with IDEs in mind: Sure, it’s possible, but it’s not very user friendly or declarative (you

Re: [cmake-developers] Need ideas/opinions on third party library management

2016-08-16 Thread Florent Castelli
ery interesting discussion, we have the same issues here. > > Florent Castelli, how many third parties libraries do you use ? I think a > super build can be a very good solution but I'm wondering how much third > party code you have to build. Here we use OpenCV, with, boost, and poco

Re: [cmake-developers] Android Support

2016-09-26 Thread Florent Castelli
On 12/09/2016 15:09, Brad King wrote: On 09/09/2016 04:04 PM, Robert Dailey wrote: Currently nightly builds are tagged 3.6.2. Are there no nightly builds for 3.7 or am I missing something? They are 3.6.2.$date, indicating post-3.6 feature development. See the documentation of CMAKE_VERSION:

Re: [cmake-developers] Unix makefile: concurrent build configurations

2016-08-23 Thread Florent Castelli
Well, I imagine we could have a shim that will automatically create sub-build directories when you specify a CONFIGURATION=... argument or just starts the build in there. And if a build folder is missing but the configuration is declared, it would run CMake with similar startup arguments. In

Re: [cmake-developers] Android Support

2016-09-27 Thread Florent Castelli
That’s great to know, thanks! Is there any plan on having their toolchain in CMake directly at some point? I’m afraid that even if they update their options to use the upstream support, they may not allow using those options directly and we’ll still have to support 2 toolchains. That’s

Re: [cmake-developers] Android variables

2016-11-12 Thread Florent Castelli
On 12/11/2016 13:35, Ruslan Baratov wrote: On 12-Nov-16 19:09, Florent Castelli wrote: On 12/11/2016 06:53, Ruslan Baratov wrote: On 12-Nov-16 08:21, Florent Castelli wrote: On 10/11/2016 16:05, Ruslan Baratov via cmake-developers wrote: Hi, I wonder if it's possible to introduce next

Re: [cmake-developers] Android variables

2016-11-11 Thread Florent Castelli
On 10/11/2016 16:05, Ruslan Baratov via cmake-developers wrote: Hi, I wonder if it's possible to introduce next variables describing Android tools: * C preprocessor. Similar to CMAKE_CXX_COMPILER the variable that will contain the path to preprocessor. Example: * CMAKE_CXX_COMPILER =

Re: [cmake-developers] Android variables

2016-11-12 Thread Florent Castelli
On 12/11/2016 06:53, Ruslan Baratov wrote: On 12-Nov-16 08:21, Florent Castelli wrote: On 10/11/2016 16:05, Ruslan Baratov via cmake-developers wrote: Hi, I wonder if it's possible to introduce next variables describing Android tools: * C preprocessor. Similar to CMAKE_CXX_COMPILER

Re: [cmake-developers] CMake integration in Gradle (Android Studio)

2016-10-31 Thread Florent Castelli
I tried the Gradle + CMake integration and I'm not really impressed. I would recommend not using it right now until they fix the rough edges. The prime concern is that it is REALLY hard to get the CMake output and compilation output, even within Android Studio. If you compile from command line,

Re: [cmake-developers] Add property to get all linked libraries including transitive ones

2016-11-02 Thread Florent Castelli
One usage I would have had for this feature would have been to generate a pre-linked library. Basically, merging a static library and its dependencies together (check ld -r) and output an object file for static linking (not a shared library). This is required as merging static libraries may

Re: [cmake-developers] Unknown Imported & Global libraries

2017-01-09 Thread Florent Castelli
> On 9 Jan 2017, at 20:55, Brad King <brad.k...@kitware.com> wrote: > > On 12/21/2016 07:12 AM, Florent Castelli wrote: >> find_package(foo) >> if(NOT FOO_FOUND) >> add_library(foo STATIC foo.cpp) >> endif() > > Instead do > > find_pack

[cmake-developers] Unknown Imported & Global libraries

2016-12-21 Thread Florent Castelli
Hi, In my project, I have to deal with 3rd party libraries. Either the library is available on the system and then I will try to use that, or I will use sources bundled in my repository. This is in order to make Linux maintainers happy who want to have a system-wide shared library, but to also

Re: [cmake-developers] Support for unified headers in Android NDK

2017-04-20 Thread Florent Castelli
I just came back from some holidays now, I'll try to update the MR with the latest changes soon next week! /Florent On Apr 20, 2017 10:10 PM, "Robert Dailey" wrote: > I may pick this up, because right now it's impossible to use libc++ > (LLVM) with an API less than 21

Re: [cmake-developers] Compile targets affected by changeset

2017-05-22 Thread Florent Castelli
> On 22 May 2017, at 20:07, Robert Patterson via cmake-developers > wrote: > > We understand that CMake and make already can rebuild targets which depend on > changed files, and this behavior works exactly as expected for us. Our issue > is not that make is

Re: [cmake-developers] Compile targets affected by changeset

2017-05-22 Thread Florent Castelli
On Tue, May 23, 2017 at 4:54 AM, Florent Castelli <florent.caste...@gmail.com <mailto:florent.caste...@gmail.com>> wrote: On 22 May 2017, at 20:07, Robert Patterson via cmake-developers <cmake-developers@cmake.org <mailto:cmake-developers@cmake.org>> wrote: