Re: [CMake] Dependencies of an external project

2019-11-19 Thread Marc CHEVRIER
ExternalProject does its work at build time, so too late for find_package which is executed at config time. Have a look at module FetchContent which does its work before config time. Le 19 nov. 2019 à 16:13 +0100, hex , a écrit : > I have an external CMake project that gets exported on install.

[CMake] Dependencies of an external project

2019-11-19 Thread hex
I have an external CMake project that gets exported on install. The root project uses it as a package. The external project must be installed prior being used as a package. I can solve this problem by using `ExternalProject` for both projects and declare their dependency. My setup is

Re: [CMake] dependencies on system include files

2018-12-18 Thread Roger Leigh
On 17/12/2018 15:37, David Blaikie wrote: On Sun, Dec 16, 2018, 4:24 PM Kris Thielemans mailto:kris.f.thielem...@gmail.com> wrote: I’ve just had a problem caused by an upgrade of my system files (in this particular case: boost). Rebuilding our software didn’t correctly rebuild

Re: [CMake] dependencies on system include files

2018-12-18 Thread Kris Thielemans
Thanks David It seems that a rebuild is the only way. We’ll add that to our instructions then! Kris From: David Blaikie Sent: 17 December 2018 15:37 To: Kris Thielemans Cc: CMake Mail List Subject: Re: [CMake] dependencies on system include files If you're willing to run

Re: [CMake] dependencies on system include files

2018-12-17 Thread David Blaikie
If you're willing to run a different command or flag when rebuilding after upgrading system libraries, I would guess the thing to do would be to do a clean and rebuild, perhaps? On Sun, Dec 16, 2018, 4:24 PM Kris Thielemans Hi all > > > > I’ve just had a problem caused by an upgrade of my system

Re: [CMake] dependencies on system include files

2018-12-17 Thread Simon Richter
Hi Kris, On 17.12.18 01:24, Kris Thielemans wrote: > Checking a bit more carefully it appears that the system .h files are > not included in depend.make. I guess this is done to save some time > checking all those dependencies as system files are supposed to be > relatively stable, but if

[CMake] dependencies on system include files

2018-12-16 Thread Kris Thielemans
Hi all I've just had a problem caused by an upgrade of my system files (in this particular case: boost). Rebuilding our software didn't correctly rebuild those files that depend on the updated boost files. (I'm using CMake 3.9 with make on Ubuntu 16.04) Checking a bit more carefully it

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-12-11 Thread Eric Noulard
Le mar. 11 déc. 2018 à 14:18, Rolf Eike Beer a écrit : > Eric Noulard wrote: > > > When ones do cross compile for the host + one or several target a > > lighter > > "add_superbuild" API could be design. I'll try to think about it more > > thoroughly and do some proposal. Ideally we shouldn't

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-12-11 Thread Rolf Eike Beer
Eric Noulard wrote: When ones do cross compile for the host + one or several target a lighter "add_superbuild" API could be design. I'll try to think about it more thoroughly and do some proposal. Ideally we shouldn't need to provide many parameters beside the toolchain and a way to specify

Re: [CMake] dependencies of cross compiliations

2018-12-10 Thread Craig Scott
On Mon, Dec 10, 2018 at 7:57 PM Eric Noulard wrote: > > Le dim. 9 déc. 2018 à 12:24, Craig Scott a > écrit : > >> On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki >> wrote: >> >>> > Am 27.11.2018 um 19:55 schrieb Eric Noulard : >>> > >>> > My assumption are: >>> > a) when you cross-compile

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-12-10 Thread Craig Scott
On Mon, Dec 10, 2018 at 7:57 PM Eric Noulard wrote: > > Le dim. 9 déc. 2018 à 12:24, Craig Scott a > écrit : > >> On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki >> wrote: >> >>> > Am 27.11.2018 um 19:55 schrieb Eric Noulard : >>> > >>> > My assumption are: >>> > a) when you cross-compile

Re: [CMake] dependencies of cross compiliations

2018-12-10 Thread Eric Noulard
Le dim. 9 déc. 2018 à 12:24, Craig Scott a écrit : > On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki > wrote: > >> > Am 27.11.2018 um 19:55 schrieb Eric Noulard : >> > >> > My assumption are: >> > a) when you cross-compile your build is a "whole" and you shouldn't >> have to setup some

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-12-10 Thread Eric Noulard
Le dim. 9 déc. 2018 à 12:24, Craig Scott a écrit : > On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki > wrote: > >> > Am 27.11.2018 um 19:55 schrieb Eric Noulard : >> > >> > My assumption are: >> > a) when you cross-compile your build is a "whole" and you shouldn't >> have to setup some

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-12-10 Thread Eric Noulard
Le mer. 28 nov. 2018 à 21:03, Rolf Eike Beer a écrit : > Am Dienstag, 27. November 2018, 19:55:56 CET schrieb Eric Noulard: > > > I think that most of the time specifying the toolchain on the command > line > > drives you to some superbuild structure. > > Which is not bad by itself, but I would

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-12-09 Thread Craig Scott
On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki wrote: > > Am 27.11.2018 um 19:55 schrieb Eric Noulard : > > > > However from my point of view and my cross-compiling experience when you > cross-compile you have: > > > > 1) the host compiler which is used to compile "host tools" > > 2) the target

Re: [CMake] dependencies of cross compiliations

2018-12-09 Thread Craig Scott
On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki wrote: > > Am 27.11.2018 um 19:55 schrieb Eric Noulard : > > > > However from my point of view and my cross-compiling experience when you > cross-compile you have: > > > > 1) the host compiler which is used to compile "host tools" > > 2) the target

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-12-03 Thread Torsten Robitzki
> Am 27.11.2018 um 19:55 schrieb Eric Noulard : > > However from my point of view and my cross-compiling experience when you > cross-compile you have: > > 1) the host compiler which is used to compile "host tools" > 2) the target compiler (may be several of them) to "cross-compile" > > My

Re: [CMake] dependencies of cross compiliations

2018-12-03 Thread Torsten Robitzki
> Am 27.11.2018 um 19:55 schrieb Eric Noulard : > > However from my point of view and my cross-compiling experience when you > cross-compile you have: > > 1) the host compiler which is used to compile "host tools" > 2) the target compiler (may be several of them) to "cross-compile" > > My

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-11-28 Thread Rolf Eike Beer
Am Dienstag, 27. November 2018, 19:55:56 CET schrieb Eric Noulard: > Le mar. 27 nov. 2018 à 11:28, Rolf Eike Beer a écrit : > > Am 2018-11-09 10:04, schrieb Torsten Robitzki: > > > Hi, > > > I hope this question was not asked before. I work in the embedded > > > field and there it is usually to

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-11-27 Thread Eric Noulard
Le mar. 27 nov. 2018 à 11:28, Rolf Eike Beer a écrit : > Am 2018-11-09 10:04, schrieb Torsten Robitzki: > > Hi, > > I hope this question was not asked before. I work in the embedded > > field and there it is usually to have at least two different build > > platforms. The Host platform, where

Re: [CMake] dependencies of cross compiliations

2018-11-27 Thread Eric Noulard
Le mar. 27 nov. 2018 à 11:28, Rolf Eike Beer a écrit : > Am 2018-11-09 10:04, schrieb Torsten Robitzki: > > Hi, > > I hope this question was not asked before. I work in the embedded > > field and there it is usually to have at least two different build > > platforms. The Host platform, where

Re: [CMake] dependencies of cross compiliations

2018-11-27 Thread Miller Henry
not doing the work I don't get to tell you how to do it. -Original Message- From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Rolf Eike Beer Sent: Tuesday, November 27, 2018 4:28 AM To: cmake@cmake.org Cc: cmake-develop...@cmake.org Subject: Re: [CMake] dependencies of cross

Re: [CMake] dependencies of cross compiliations

2018-11-27 Thread Ray Donnelly
> which I bet all of us would love to see. This is not correct. I would strongly prefer they continue with QBS instead. Cmake is defacto, but very suboptional. On Tue, Nov 27, 2018, 10:28 AM Rolf Eike Beer Am 2018-11-09 10:04, schrieb Torsten Robitzki: > > Hi, > > I hope this question was not

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-11-27 Thread Ray Donnelly
> which I bet all of us would love to see. This is not correct. I would strongly prefer they continue with QBS instead. Cmake is defacto, but very suboptional. On Tue, Nov 27, 2018, 10:28 AM Rolf Eike Beer Am 2018-11-09 10:04, schrieb Torsten Robitzki: > > Hi, > > I hope this question was not

Re: [cmake-developers] [CMake] dependencies of cross compiliations

2018-11-27 Thread Rolf Eike Beer
Am 2018-11-09 10:04, schrieb Torsten Robitzki: Hi, I hope this question was not asked before. I work in the embedded field and there it is usually to have at least two different build platforms. The Host platform, where unit tests are build (and where CMake is running) and an embedded Target

Re: [CMake] dependencies of cross compiliations

2018-11-27 Thread Rolf Eike Beer
Am 2018-11-09 10:04, schrieb Torsten Robitzki: Hi, I hope this question was not asked before. I work in the embedded field and there it is usually to have at least two different build platforms. The Host platform, where unit tests are build (and where CMake is running) and an embedded Target

Re: [CMake] dependencies of cross compiliations

2018-11-10 Thread Torsten Robitzki
> Am 09.11.2018 um 15:55 schrieb Miller Henry : > > There are two options. Each with pros and cons. > > The first what you are doing now, except you use external project > https://cmake.org/cmake/help/v3.12/module/ExternalProject.html to build the > host tools instead of add_custom_command.

Re: [CMake] dependencies of cross compiliations

2018-11-09 Thread Miller Henry
Original Message- From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Torsten Robitzki Sent: Friday, November 9, 2018 3:04 AM To: cmake@cmake.org Subject: [CMake] dependencies of cross compiliations Hi, I hope this question was not asked before. I work in the embedded field and there

[CMake] dependencies of cross compiliations

2018-11-09 Thread Torsten Robitzki
Hi, I hope this question was not asked before. I work in the embedded field and there it is usually to have at least two different build platforms. The Host platform, where unit tests are build (and where CMake is running) and an embedded Target platform, where targets are build with a cross

Re: [CMake] Dependencies to protobuf sources

2018-10-07 Thread Stephan Menzel
On Sat, Oct 6, 2018 at 10:58 AM Stephan Menzel wrote: > > protobuf_generate(TARGET my_protobuf_lib) > > Well, it seems like this was the culprit all along. There is a bug in protobuf's usage of the add_custom_command. Appears this is known and fixed by:

[CMake] Dependencies to protobuf sources

2018-10-06 Thread Stephan Menzel
Hello all, I am a long term user of CMake, protobuf and grpc on Windows (MSVC15) and Linux. Roughly in the beginning of this year I started to notice that dependencies of targets using generated sources to their appropriate protobuf files didn't work anymore. Basically, when I change a grpc

Re: [CMake] Dependencies with static libraries

2018-08-16 Thread Stephan Menzel
On Thu, Jun 28, 2018 at 4:07 PM Stephan Menzel wrote: > I am observing a strange problem regarding dependencies to static libs in > executables. I am not entirely sure but it seems this started since I > upgraded to the 3.11 line. I am using Windows and MSVC14. > > Basically, my code base

Re: [CMake] Dependencies with static libraries

2018-06-28 Thread Hendrik Sattler
Are you sure you hit the right build menu item? Maybe you are just building the current target. At least that would explain it. In MSVC you must either build the solution or the ALL_BUILD target for this to work. Am 28. Juni 2018 16:07:33 MESZ schrieb Stephan Menzel : >Hello CMake community,

Re: [CMake] Dependencies with static libraries

2018-06-28 Thread Stephan Menzel
Hello Innokentiy, On Thu, Jun 28, 2018 at 4:17 PM, Innokentiy Alaytsev wrote: > Hello! > > I hope you will forgive me a silly question: did you consider checking last > change date of the executable? And is there any way you can ensure that the > changes to the library a present in the

Re: [CMake] Dependencies with static libraries

2018-06-28 Thread Innokentiy Alaytsev
Hello! I hope you will forgive me a silly question: did you consider checking last change date of the executable? And is there any way you can ensure that the changes to the library a present in the executable? Best regards, Innokentiy Alaytsev -- Sent from:

[CMake] Dependencies with static libraries

2018-06-28 Thread Stephan Menzel
Hello CMake community, I am observing a strange problem regarding dependencies to static libs in executables. I am not entirely sure but it seems this started since I upgraded to the 3.11 line. I am using Windows and MSVC14. Basically, my code base contains a number of static libraries that are

[CMake] Dependencies scanning for non-c/c++ files

2018-04-11 Thread Somux
Hi, I ran into a CMake problem and I found a very informative answer at https://cmake.org/pipermail/cmake/2011-April/043758.html. Still, 7 years has passed. Is any easier solution for dependency scanning for an proprietary language? BR, SoMux -- Powered by www.kitware.com Please keep

Re: [CMake] dependencies between external projects (not DEPENDS)

2016-08-17 Thread Nicholas Braden
Usually there would be variables like A_ROOT which allow the FindA.cmake module being used by B to correctly find everything. If there isn't, you'd have to write your own FindA.cmake module in either case. If you can't modify B, you could use the patch step of the external project to replace the

[CMake] dependencies between external projects (not DEPENDS)

2016-08-15 Thread Neil Carlson
I'm struggling with how to handle dependencies between external projects in a superbuild. The issue is different than simply ensuring that one gets built before another using the DEPENDS keyword -- that's trivial. Suppose I have two external libraries A and B, where B depends on A. It is not

[CMake] dependencies

2014-09-11 Thread Vojtech Mašek
Hi, I am working at team developing RPM pacage generator. Now I am solving a problem how can i get dependencies using cmake. Basically we need to get paths to libs like they are cached in CmakeCache.txt, is it somehow possible before calling cmake and then parsing the file ? -- Powered by

Re: [CMake] dependencies

2014-09-11 Thread Richard Shaw
On Thu, Sep 11, 2014 at 9:51 AM, Vojtech Mašek shooter...@gmail.com wrote: Hi, I am working at team developing RPM pacage generator. Now I am solving a problem how can i get dependencies using cmake. Basically we need to get paths to libs like they are cached in CmakeCache.txt, is it somehow

[CMake] Dependencies between static libraries

2014-05-26 Thread Jörg Kreuzberger
Hi! i had a problem between depencendies of static libraris. Due to the used tools (qt, moc, uic) a library depends on another library, especially on header files generated by uic. This is a litte bit a broken design, but cannot fix it currently. On massive parallel builds ( 8 cores on ssd )

Re: [CMake] Dependencies between static libraries

2014-05-26 Thread Rolf Eike Beer
Jörg Kreuzberger wrote: Hi! i had a problem between depencendies of static libraris. Due to the used tools (qt, moc, uic) a library depends on another library, especially on header files generated by uic. This is a litte bit a broken design, but cannot fix it currently. On massive parallel

Re: [CMake] Dependencies

2014-02-11 Thread Phil Smith
: [CMake] Dependencies Quoting the documentation of OBJECT_DEPENDS: Specifies a semicolon-separated list of full-paths to files on which any object files compiled from this source file depend. Notice the full-paths bit. You're not providing a full path. You must make the path absolute; you can

Re: [CMake] Dependencies

2014-02-05 Thread Petr Kmoch
Hi Phil. If your FOO.asm is used as a source file (i.e. it's listed in an add_executable() or add_library() command), then you can use the source file property OBJECT_DEPENDS for that: add_executable(myexe FOO.asm other.file one.more) set_property(SOURCE FOO.asm PROPERTY OBJECT_DEPENDS

Re: [CMake] Dependencies

2014-02-05 Thread Zaak Beekman
I might also add that the set_property() approach has an additional advantage over the set_source_files_properties(): The APPEND and APPEND_STRING options allow you to add properties like dependencies without overwriting the values which already exist. Hi Phil. If your FOO.asm is used as a

Re: [CMake] Dependencies

2014-02-05 Thread Phil Smith
as expected (i.e., that code didn't somehow get bypassed). From: Petr Kmoch [mailto:petr.km...@gmail.com] Sent: Wednesday, February 05, 2014 3:08 AM To: Phil Smith Cc: cmake@cmake.org Subject: Re: [CMake] Dependencies Hi Phil. If your FOO.asm is used as a source file (i.e. it's listed

[CMake] Dependencies

2014-02-04 Thread Phil Smith
This is surely something basic, but I'm far from a CMake guru and would rather not spend weeks digging to solve something that *seems* like it'll be simple. We have assembler modules in a project. These use macros, as assembler modules are wont to do. So if module FOO.asm uses macro BAR.mac,

[CMake] Dependencies of generated files

2013-02-13 Thread Olaf Peter
Hello, obviously I have a problem with the understanding of generating dependencies of generated files. generate_foo_static_lexer is using ${foo_LEXER_HPP} to generate a header file ${foo_STATIC_LEXER_HPP}. Each time ${foo_STATIC_LEXER_HPP} is changed the header shall be regenerated. Later,

Re: [CMake] Dependencies of generated files

2013-02-13 Thread Petr Kmoch
Hi Olaf. You're missing a DEPENDS argument in your custom command to make ${foo_STATIC_LEXER_HPP} depend on ${foo_LEXER_HPP}. (Or, in your case, MAIN_DEPENDENCY would probably be more appropriate). Next, the custom target driving the lexer generation should depend on its output, not its input -

[CMake] Dependencies between independent projects

2012-06-01 Thread Stefan Eilemann
Hi, Apologies for not replying properly to this thread. I just joined the list. By coincidence I just wrote up a blog post on this topic, which I just wanted to share with you. We've faced the same problem and came up with a solution for our projects:

Re: [CMake] Dependencies between independent projects

2012-05-03 Thread Alexander Broekhuis
Hi André, 2012/5/2 André Caron andre.l.ca...@gmail.com I've come up with a simple workflow where each library project exports a library-config.cmake file and any project that includes it defines the library_DIR variable to the folder containing this library-config.cmake file so that it can

Re: [CMake] Dependencies between independent projects

2012-05-02 Thread Alexander Broekhuis
Hi Peter, Thanks for your reply, 2012/4/30 Petr Kmoch petr.km...@gmail.com Hi Alexander, I had to create a very similar setup at work. My solution was to define a global property for the list of projects to generate. There is a top level CMakeLists.txt file which doesn't define any

Re: [CMake] Dependencies between independent projects

2012-05-02 Thread Alexander Broekhuis
Hi, I'm very interested in this solution and the results if it is finished. Could you keep me up to date if you have something working? Thx! 2012/4/30 Arnault Christian arna...@lal.in2p3.fr Hi We have been using a configuration system named CMT which exactly cope with this issue It used

Re: [CMake] Dependencies between independent projects

2012-04-30 Thread Petr Kmoch
Hi Alexander, I had to create a very similar setup at work. My solution was to define a global property for the list of projects to generate. There is a top level CMakeLists.txt file which doesn't define any targets, but just includes all subdirectories as necessary. In pseudo-code, my solution

Re: [CMake] Dependencies between independent projects

2012-04-30 Thread Arnault Christian
Hi We have been using a configuration system named CMT which exactly cope with this issue It used to be directly based on pure Make files for the build aspect. Nowadays, we are converting the build part to using CMake, while preserving te general configuration properties. In fact, we do

[CMake] Dependencies between independent projects

2012-04-29 Thread Alexander Broekhuis
Hi all, I am looking for a way to have dependencies between independent projects. For example ProjectA ProjectB depends on A ProjectC depends on B and A What I like to do is that when project B or C is build, the dependencies are also build. But I also want the project to be independent, to be

[CMake] Dependencies between libraries

2012-03-23 Thread Peter Eastman
My project involves a set of plugin libraries. Those libraries get loaded dynamically at runtime, e.g. by calling dlopen(). The user can install them to any location they want, so the directory won't necessarily be in the library path. I can safely assume, though, that they'll all be in the

[CMake] Dependencies when using macro as include filename

2011-09-16 Thread Max Vasin
Hello, I have a number of headers (say A.h, B.h, C.h) that define some kind of hardware abstraction layer, which header to use is determined by the CMakeLists.txt and specified by the macro in config.h: config.h: #cmakedefine HAL_H ${HAL_H} The config.h and the HAL_H are included by the header

Re: [CMake] Dependencies when using macro as include filename

2011-09-16 Thread Michael Wild
On 09/16/2011 01:29 PM, Max Vasin wrote: Hello, I have a number of headers (say A.h, B.h, C.h) that define some kind of hardware abstraction layer, which header to use is determined by the CMakeLists.txt and specified by the macro in config.h: config.h: #cmakedefine HAL_H ${HAL_H} The

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread J.S. van Bethlehem
Hej David, From your description I think all your build script needs to do is: mkdir build cd build cmake .. make MY_APP Further, assuming your library also gets build with CMake, you probably have an add_directory(../MY_LIB ../MY_LIB) in your main lists-file (otherwise you should) and then

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread David Springate
Hi, Thanks for the reply - but I think you might have misunderstood my question. I want to setup CMake so that when I call Cmake like so (for MY_APP): mkdir build cd build cmake .. -G Xcode that the cmake call will be able to 'know' that it needs MY_LIB, find where the MY_LIB CMakeLists.txt

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread David Springate
Hi Andreas, Thanks for another reply! My question therefore is: How can the cmake for MY_APP start the cmake for MY_LIB? I know how to get my app to link a library, and how to add the include directories for the lib - so that the app can compile - but how can it kick-start the build for MY_LIB

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread Andreas Naumann
I don't see any good reason, why should cmake call itself in another build directory? If the library is part of the project, than it is added with add_subdirectory in the main CMakeLists.txt file. If the library is not part of the project, it has to be maintained from outside. Am I missing

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread Benjamin Eikel
Hello, Am Freitag, 17. Juni 2011, 11:40:15 schrieb David Springate: Hi Andreas, Thanks for another reply! My question therefore is: How can the cmake for MY_APP start the cmake for MY_LIB? I know how to get my app to link a library, and how to add the include directories for the lib -

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread J.S. van Bethlehem
Hej David, You're either very confusing in explaining your needs or you just don't understand what CMake does. CMake knows that it needs to build MY_LIB before MY_APP, because supposedly you have written code in the lists-file that tells CMake so. I can't be sure, but I feel you really need

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread David Springate
Thanks for that helpful summary Jacob - and indeed you are correct I was getting very confused (overtime is getting to me!) and forgetting of course cmake doesn't actually *build* the product - but I do want it to generate the makefiles that the project is dependant on, as you outlined. Now, my

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread Mathias Gaunard
On 16/06/2011 23:54, David Springate wrote: I have the following: A library called MY_LIB that builds with a cmake command (I have created a nice CMakeLists.txt file) What do you mean a cmake command? add_custom_target? If that's how you generate your library then you need CMake 2.8.4 or

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread Glenn Coombs
If the library you are trying to build is one that is totally under your control then really it should be a subdirectory of your MY_APP source tree so that you can call add_subdirectory() on it. If MY_LIB is shared across multiple projects then you can always arrange for it to appear as a

Re: [CMake] Dependencies and libraries..How does it work?

2011-06-17 Thread Alexander Neundorf
On Friday 17 June 2011, Glenn Coombs wrote: If the library you are trying to build is one that is totally under your control then really it should be a subdirectory of your MY_APP source tree so that you can call add_subdirectory() on it. If MY_LIB is shared across multiple projects then you

[CMake] Dependencies and libraries..How does it work?

2011-06-16 Thread David Springate
Hi, I am new to CMake - and whilst I am immediately impressed with it's relative ease of use - I have a 'noob' question, I'm sure! I have the following: A library called MY_LIB that builds with a cmake command (I have created a nice CMakeLists.txt file) An application called MY_APP that builds a

Re: [CMake] Dependencies scanning for non-c/c++ files

2011-04-06 Thread Aaron_Wright
Ah, I see this is an issue already discussed in length. Well hopefully something comes of these discussions. Thanks for the links. --- Aaron Wright From: Michael Hertling mhertl...@online.de To: cmake@cmake.org Date: 04/06/2011 05:03 AM Subject:Re: [CMake] Dependencies

Re: [CMake] Dependencies scanning for non-c/c++ files

2011-04-05 Thread Michael Hertling
On 04/03/2011 02:25 AM, aaron_wri...@selinc.com wrote: I have some m4 files in my build that include other m4 files, so there's a dependency between m4 files that can change at any time. I can calculate the dependency at configure time, but what can I do when the files change and I need to

Re: [CMake] Dependencies scanning for non-c/c++ files

2011-04-05 Thread Aaron_Wright
think I could slip in one of your solutions. Thanks again. --- Aaron Wright From: Michael Hertling mhertl...@online.de To: cmake@cmake.org Date: 04/05/2011 08:36 AM Subject:Re: [CMake] Dependencies scanning for non-c/c++ files Sent by:cmake-boun...@cmake.org On 04/03

[CMake] Dependencies scanning for non-c/c++ files

2011-04-03 Thread Aaron_Wright
I have some m4 files in my build that include other m4 files, so there's a dependency between m4 files that can change at any time. I can calculate the dependency at configure time, but what can I do when the files change and I need to recalculate the dependencies? This is obviously handled for

[CMake] Problem with cmake dependencies

2011-02-12 Thread Carminati Federico
Dear All, here I am again. I still have a problem with cmake dependencies which is a bit complicated (for me at least). I really apologise in advance if what follows is not clear, but I do need your help here. I have a coding convention checker tool that runs on all the source files to check

Re: [CMake] Dependencies on imported libraries

2010-08-04 Thread Dennis Schridde
On Sunday 01 August 2010 20:50:05 Dennis Schridde wrote: I just notice that this command does not do what I expected it to do: set_property(TARGET MyLib PROPERTY IMPORTED_LOCATION ${MYLIB_DIR}/build) Apparently it sets the path to the *file* that is MyLib, not to the directory it is in.

[CMake] Dependencies on imported libraries

2010-08-01 Thread Dennis Schridde
Hello! The binary I am building has a dependency on an external library. This library may be present system-wide, otherwise I am building it in a subdirectory. Therefore I am calling these commands: add_custom_target(BuildMyLib ...) add_library(MyLib SHARED IMPORTED) add_dependencies(MyLib

Re: [CMake] Dependencies on imported libraries

2010-08-01 Thread Dennis Schridde
I just notice that this command does not do what I expected it to do: set_property(TARGET MyLib PROPERTY IMPORTED_LOCATION ${MYLIB_DIR}/build) Apparently it sets the path to the *file* that is MyLib, not to the directory it is in. Is there a property to set the path to the *directory*? With

Re: [CMake] Dependencies on imported libraries

2010-08-01 Thread Alexander Neundorf
On Sunday 01 August 2010, Dennis Schridde wrote: Hello! The binary I am building has a dependency on an external library. This library may be present system-wide, otherwise I am building it in a subdirectory. Therefore I am calling these commands: add_custom_target(BuildMyLib ...)

Re: [CMake] Dependencies to generated file across libraries

2010-01-25 Thread Alexander Neundorf
On Monday 25 January 2010, Jens Auer wrote: Hi, I am trying to port a project from VC++ to a cmake build-system. Unfortunately, the project has a little problem: There are several libraries and some of them generate files using uic (Qt3). Cmake can handle this pretty well, but in one case,

Re: [CMake] Dependencies in Xcode files

2009-11-11 Thread Jeroen Dierckx
Hi, On Sun, Nov 8, 2009 at 5:04 AM, Bill Hoffman bill.hoff...@kitware.comwrote: Daniel Dunbar wrote: Hi Bill, Thanks for the reply. The uses I'm seeing aren't on external targets, they are for internal libraries which are built during the build. Is this the same problem? Pretty much

Re: [CMake] Dependencies in Xcode files

2009-11-11 Thread Bill Hoffman
Jeroen Dierckx wrote: I noticed that libraries are put into the link flags. They don't show up in the Linked Libraries list of the target's info. Could it be that everything works correctly if we could libraries there? I think XCode does some extra logic in that case, as opposed to

[CMake] Dependencies in Xcode files

2009-11-07 Thread Daniel Dunbar
Hi, I've been looking at the CMake generated Xcode project files and I'm wondering if the dependency hacks (XCODE_DEPEND_HELPER.make) are absolutely necessary in newer versions of Xcode. That file has some comment about avoiding a bug in Xcode 1.5 -- is it possible to generate Xcode 2.0+ specific

Re: [CMake] Dependencies in Xcode files

2009-11-07 Thread Bill Hoffman
Daniel Dunbar wrote: Hi, I've been looking at the CMake generated Xcode project files and I'm wondering if the dependency hacks (XCODE_DEPEND_HELPER.make) are absolutely necessary in newer versions of Xcode. That file has some comment about avoiding a bug in Xcode 1.5 -- is it possible to

Re: [CMake] Dependencies in Xcode files

2009-11-07 Thread Daniel Dunbar
Hi Bill, Thanks for the reply. The uses I'm seeing aren't on external targets, they are for internal libraries which are built during the build. Is this the same problem? Also, do you know if anyone has filed a bug with Apple tracking this issue? - Daniel On Sat, Nov 7, 2009 at 6:10 PM, Bill

Re: [CMake] Dependencies in Xcode files

2009-11-07 Thread Bill Hoffman
Daniel Dunbar wrote: Hi Bill, Thanks for the reply. The uses I'm seeing aren't on external targets, they are for internal libraries which are built during the build. Is this the same problem? Pretty much the same problem. A lot of it has to do with static libraries, if you link a target to

Re: [CMake] Dependencies resolution for generated assembler files (TI DSP, s62/h62)

2009-09-28 Thread Alexander Neundorf
On Sunday 27 September 2009, Wojciech Migda wrote: Hi, projects created using Texas Instruments DSP tools involve compilation of assembler source (*.s62) and header (*.h62) files generated using a dedicated tool (tconf). Those source files include headers using a directive of a form:

[CMake] Dependencies resolution for generated assembler files (TI DSP, s62/h62)

2009-09-27 Thread Wojciech Migda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, projects created using Texas Instruments DSP tools involve compilation of assembler source (*.s62) and header (*.h62) files generated using a dedicated tool (tconf). Those source files include headers using a directive of a form: .include

[CMake] Howto remove artificial CMake dependencies

2009-07-31 Thread Gerhard Gappmeier
Hi When generating Makefiles, VS projects or Eclipse CDT projects CMake creates artificial dependencies to CMakeLists.txt to be able to recreate the projects when something changes. This is good for developers, but not so good for the users (also developers). We are making portable SDKs and

Re: [CMake] Howto remove artificial CMake dependencies

2009-07-31 Thread Bill Hoffman
Gerhard Gappmeier wrote: Hi When generating Makefiles, VS projects or Eclipse CDT projects CMake creates artificial dependencies to CMakeLists.txt to be able to recreate the projects when something changes. This is good for developers, but not so good for the users (also developers). We are

[CMake] dependencies/partial installs between add_subdirectories

2009-03-05 Thread Bill O'Hara
Hi I'm writing a grand top-level CMakeLists.txt that delegates to a number of CMakeLists.txt in various subdirectories: add_subdirectories(foo) add_subdirectories(bar) Is there a straightforward to get cmake to do a make install for foo before continuing on to do bar? And to prevent a parallel

Re: [CMake] dependencies/partial installs between add_subdirectories

2009-03-05 Thread Philip Lowman
On Thu, Mar 5, 2009 at 7:10 PM, Bill O'Hara billtoh...@gmail.com wrote: Hi I'm writing a grand top-level CMakeLists.txt that delegates to a number of CMakeLists.txt in various subdirectories: add_subdirectories(foo) add_subdirectories(bar) Is there a straightforward to get cmake to do a

Re: [CMake] Dependencies and ADDITIONAL_MAKE_CLEAN_FILES

2008-09-25 Thread Mike Arthur
On Tuesday 23 September 2008 22:29:38 Phil Smith wrote: How does CMAKE decide on its own that A.c is dependent on B.c, and that compiling A.c thus requires compiling B.c? I'm somewhat confused by what you mean. In basic terms CMake is about creating libraries or executables. A

Re: [CMake] Dependencies and ADDITIONAL_MAKE_CLEAN_FILES

2008-09-24 Thread Phil Smith
compared it to the working tree! So...any takers on the ADDITIONAL_MAKE_CLEAN_FILES question? ...phsiii -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Smith Sent: Tuesday, September 23, 2008 5:30 PM To: cmake@cmake.org Subject: [CMake] Dependencies

Re: [CMake] Dependencies and ADDITIONAL_MAKE_CLEAN_FILES

2008-09-24 Thread Alan W. Irwin
On 2008-09-24 11:47-0700 Phil Smith wrote: Well, I now know why the first question got no responses: it made no sense to those who understand things. Turns out there was another CMakeLists.txt in the tree that was busted -- someone else checked in a bad copy. And not even realizing that

[CMake] Dependencies and ADDITIONAL_MAKE_CLEAN_FILES

2008-09-23 Thread Phil Smith
I suspect these questions will mostly give y'all your entertainment for the day, but I freely admit my ignorance of things, so here goes. Dependencies: I'm working on porting existing code, so CMakeLists.txt already exists, and I've made changes to it that allow me to compile. But I don't

[CMake] Dependencies handling vs. timestamp

2008-06-15 Thread Wojciech Migda
Hi, does cmake support handling of a situation when the timestamp of the file upon which trigger for a given action is dependent (compilation, build system regeneration) moves to past? -Wojciech -- Sprawdz, czy jestes

[CMake] dependencies in depend.make

2008-05-04 Thread Daniel
One thing I have noticed while trying to improve the speed of my builds is that the depends.make file for a project is fairly large (15MB) and that most of that size is dependencies against libraries I am using, mostly Boost and Qt. It is fairly safe to assume that I won't be modifying these

Re: [CMake] dependencies in depend.make

2008-05-04 Thread Bill Hoffman
Daniel wrote: One thing I have noticed while trying to improve the speed of my builds is that the depends.make file for a project is fairly large (15MB) and that most of that size is dependencies against libraries I am using, mostly Boost and Qt. It is fairly safe to assume that I won't be

  1   2   >