Re: [PATCH v4 4/8] cmake: support for testing git with ctest
- From
Øystein Walle <oystwa@gmail.com>
- Date
- Jun 15, 2020, 14:02 UTC
- Message-ID
- <20200615140236.1707-1-oystwa@gmail.com>
- In-Reply-To
- <db05180e98af42b5d0887298adbb2f2db6c1d6e7.1591986566.git.gitgitgadget@gmail.com>
> + > +if(BUILD_TESTING) > +
This variable should perhaps be declared as an option using option()[1] since it's a knob the user is supposed to be able to switch. This makes it listed by `cmake -L`, and shown in ccmake and cmake-gui. In short, it's made more disoverable.
> file(APPEND ...) > file(APPEND ...) > file(APPEND ...) > (...)
Maybe make this one multiline string and have one file(APPEND ...) at the end? It looks a bit... big.
Øsse
[1]: ttps://cmake.org/cmake/help/v3.18/command/option.html