[cmake-developers] Integration of clang-tidy

2016-04-08 Thread Daniel Pfeifer
Hi, I implemented the integration of `clang-tidy` along the lines of the `include-what-you-use` integration. There is a new `_CLANG_TIDY` target property that is initialized with the value of the `CMAKE__CLANG_TIDY` variable. It contains the command line for `clang-tidy` as a ;-list. Example

[cmake-developers] [CMake 0016056]: file(GENERATE) not processing variables from INPUT file

2016-04-08 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == https://cmake.org/Bug/view.php?id=16056 == Reported By:johnnyzz Assigned To:

Re: [cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Harry Mallon
That is completely fair. Perhaps a bit of Friday brain from me. It still could reduce complexity if you are trying to do something more complicated. In my opinion A is easier to read than B. A: if ( $1 STRGREATER_EQ $2 AND $3 STRLESS $4 AND $5 STRLESS_EQ $6 ) B: if ( NOT $1 STRLESS $2 AND $3

Re: [cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Brad King
On 04/08/2016 10:24 AM, Harry Mallon wrote: > "if(VERSION_STRING VERSION_GREATER "4.8.0" OR VERSION_STRING VERSION_EQUAL > "4.8.0")". As others have said this can be done with if(NOT version VERSION_LESS 4.8.0) > Commit on github: >

Re: [cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Ben Boeckel
On Fri, Apr 08, 2016 at 14:24:08 +, Harry Mallon wrote: > CMake's "if" functionality is missing greater than or equal to and > less than or equal to. This change could be tweaked and added to > provide this functionality to avoid things like "if(VERSION_STRING > VERSION_GREATER "4.8.0" OR

Re: [cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Rolf Eike Beer
Am Freitag, 8. April 2016, 14:24:08 schrieb Harry Mallon: > CMake's "if" functionality is missing greater than or equal to and less than > or equal to. This change could be tweaked and added to provide this > functionality to avoid things like "if(VERSION_STRING VERSION_GREATER > "4.8.0" OR

[cmake-developers] Suggest if function has lte gte operators

2016-04-08 Thread Harry Mallon
CMake's "if" functionality is missing greater than or equal to and less than or equal to. This change could be tweaked and added to provide this functionality to avoid things like "if(VERSION_STRING VERSION_GREATER "4.8.0" OR VERSION_STRING VERSION_EQUAL "4.8.0")". Commit on github: