Re: [CMake] build order

2015-12-19 Thread Owen Hogarth II
Hi David Thank you for the response, I thought that I was doing something wrong. I mean it's documented and I followed the docs as close as possible to write my scripts but there's literally no mention about how to solve this external/ internal project setup in the official docs. I saw some

Re: [CMake] build order

2015-12-19 Thread David Cole via CMake
Build the second thing as an ExternalProject, too, and use the DEPENDS keyword to make it build after the first thing. Don't try to mix-and-match external projects and non-external projects in the same CMake configure... It's just too much work to get things working in a reasonable

[CMake] build order

2015-12-18 Thread Owen Hogarth II
If you download, compile and install a cmake project through external project How can I make sure that the external project is built before something that depends on that external project? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] Build order

2011-06-27 Thread Maxime Lecourt
Hello, I'm using CMake to build OCaml libraries. For that, I use a macro that I call in my CMakeLists.txt As I have dependencies between my different libraries, I wrote my CMakeLists.txt so the build happens in the right order, but when building, libraries are built depending on alphabetical

Re: [CMake] Build order

2011-06-27 Thread Michael Wild
On 06/27/2011 11:31 AM, Maxime Lecourt wrote: Hello, I'm using CMake to build OCaml libraries. For that, I use a macro that I call in my CMakeLists.txt As I have dependencies between my different libraries, I wrote my CMakeLists.txt so the build happens in the right order, but when

Re: [CMake] Build order

2011-06-27 Thread Maxime Lecourt
2011/6/27 Michael Wild them...@gmail.com On 06/27/2011 11:31 AM, Maxime Lecourt wrote: Hello, I'm using CMake to build OCaml libraries. For that, I use a macro that I call in my CMakeLists.txt As I have dependencies between my different libraries, I wrote my CMakeLists.txt so the

Re: [CMake] Build order

2011-06-27 Thread Michael Wild
On 06/27/2011 12:00 PM, Maxime Lecourt wrote: 2011/6/27 Michael Wild them...@gmail.com mailto:them...@gmail.com On 06/27/2011 11:31 AM, Maxime Lecourt wrote: Hello, I'm using CMake to build OCaml libraries. For that, I use a macro that I call in my

[CMake] Build-order in Visual Studio

2009-01-26 Thread Micha Renner
Hello, is it possible to influence the build-order of MSVC from CMakeLists.txt-files? The top-level CMakeLists.txt looks like this: ADD_SUBDIRECTORY(lib1) ADD_SUBDIRECTORY(lib2) ADD_SUBDIRECTORY(lib3) ADD_SUBDIRECTORY(lib4) ADD_SUBDIRECTORY(prog) prog depends on the libs. lib3 depends on lib1

Re: [CMake] Build-order in Visual Studio

2009-01-26 Thread Dmytro Ovdiienko
Micha, Use *target_link_librarieshttp://www.cmake.org/cmake/help/cmake2.6docs.html#command:target_link_libraries * and *add_dependencieshttp://www.cmake.org/cmake/help/cmake2.6docs.html#command:add_dependencies * to fix project build order. 2009/1/26 Micha Renner micha.ren...@t-online.de

Re: [CMake] Build-order in Visual Studio

2009-01-26 Thread Micha Renner
Am Montag, den 26.01.2009, 16:22 +0200 schrieb Dmytro Ovdiienko: Micha, Use target_link_libraries and add_dependencies to fix project build order. I think, that this doesn't work in the case here. For target_link_libraries I need a library. If prog is first in build process then there are