Re: [CMake] Need suggestions for implementation of new feature in cmake.

2020-03-27 Thread Carlo Wood
On Fri, 27 Mar 2020 07:18:11 +0100 Hendrik Sattler wrote: > Hi Carlo, > > The answer is already right in front of you: "a && b" executes b only > if a returns positive (zero exit code). This is already done for the > mkdir. > > And to answer the other question: no, you cannot assume a POSIX she

Re: [CMake] Need suggestions for implementation of new feature in cmake.

2020-03-26 Thread Hendrik Sattler
Hi Carlo, The answer is already right in front of you: "a && b" executes b only if a returns positive (zero exit code). This is already done for the mkdir. And to answer the other question: no, you cannot assume a POSIX shell in a Makefile. HS Am 27. März 2020 05:53:39 MEZ schrieb Carlo Wood

[CMake] Need suggestions for implementation of new feature in cmake.

2020-03-26 Thread Carlo Wood
Hello! I'm writing a patch for cmake to address https://gitlab.kitware.com/cmake/cmake/issues/19703 but I need a little help; I'm only familiar with GNU/Linux and single target generator Makefile. In terms of a Makefile, if one uses ExternalProject_Add_Step, see https://cmake.org/cmake/help/lat