[CMake] Adding dependencies for configuration stage

2016-08-20 Thread Daniel Levin
CMake can automatically invoke configuration at build time when any dependency has been modified. For instance, after you edited CMakeLists.txt. Of when you used add_subdirectory() and edited nested CMakeLists.txt. Or if you have include("myscript.cmake") and modified myscript.cmake. I am curious

Re: [cmake-developers] Introduce 'Unix Ninja' generator

2015-01-22 Thread Daniel Levin
sh as shell. On Tue, Jan 20, 2015 at 1:18 PM, Brad King brad.k...@kitware.com wrote: On 01/20/2015 01:04 PM, Daniel Levin wrote: Brad King wrote: We expect that environment variables required by the toolchain in use are already loaded. configure everything once, save into cache, build

Re: [cmake-developers] Introduce 'Unix Ninja' generator

2015-01-22 Thread Daniel Levin
, Jan 22, 2015 at 11:27 AM, Brad King brad.k...@kitware.com wrote: On 01/22/2015 10:34 AM, Daniel Levin wrote: finally came with solution that works for me with standard Ninja generator for QNX SDK. Great! 2. In custom build rules instead of launching .sh scripts directly shell should

Re: [cmake-developers] Introduce 'Unix Ninja' generator

2015-01-20 Thread Daniel Levin
20, 2015 at 12:00 PM, Ben Boeckel ben.boec...@kitware.com wrote: On Tue, Jan 20, 2015 at 10:42:47 -0500, Daniel Levin wrote: This wrapper script cannot be common, because for each kind of build env variable set will be different. So it need to be created at CMake generation time saving

Re: [cmake-developers] Introduce 'Unix Ninja' generator

2015-01-20 Thread Daniel Levin
it to them. That is why I added 'Unix Ninja' generator that will always use sh as shell tool. Thanks, Daniel On Mon, Jan 19, 2015 at 2:50 PM, Brad King brad.k...@kitware.com wrote: On 01/16/2015 01:13 PM, Daniel Levin wrote: The CMake and Ninja were part of the bigger build script, which was running

Re: [cmake-developers] Introduce 'Unix Ninja' generator

2015-01-20 Thread Daniel Levin
be automated. P.S. My personal thumb rule is what can be automated should be automated. On Tue, Jan 20, 2015 at 12:51 PM, Brad King brad.k...@kitware.com wrote: On 01/20/2015 12:26 PM, Daniel Levin wrote: As far as I understand this 'env' is not a standard key in Ninja, right? That would be actually

Re: [cmake-developers] Introduce 'Unix Ninja' generator

2015-01-15 Thread Daniel Levin
with 'ninja' and it keeps working normally. Thanks, Daniel On Thu, Jan 15, 2015 at 8:44 AM, Brad King brad.k...@kitware.com wrote: On 01/14/2015 04:11 AM, Daniel Levin wrote: we need Ninja generator running on Windows with Unix environment. [snip] is the only way to use Ninja with QNX

[cmake-developers] Introduce 'Unix Ninja' generator

2015-01-14 Thread Daniel Levin
Story short: we need Ninja generator running on Windows with Unix environment. With exactly the same purpose as 'Unix Makefiles' one. Where this is used: actually, in the same cases when 'Unix Makefiles' used on Windows. Particularly in my personal case 'Unix Ninja' generator is the only way to

Re: [cmake-developers] Introduce 'Unix Ninja' generator

2015-01-14 Thread Daniel Levin
Sorry for including garbage QtCreator files into formatted patch in previous e-mail. Attached clean patch with changes only. Thanks, Daniel On Wed, Jan 14, 2015 at 4:11 AM, Daniel Levin dendy...@gmail.com wrote: Story short: we need Ninja generator running on Windows with Unix environment