path: root/src
diff options
authorRolf Eike Beer <eb@emlix.com>2018-06-06 16:05:35 +0200
committerRolf Eike Beer <eb@emlix.com>2018-06-08 07:26:15 +0000
commit7f3204ea7ba7836907b2d3eeefc51912c1c8c54b (patch)
tree6d25c44c8efeb8bc29c0d18947a62d982d9bd591 /src
parent8735ff6499f4ef93675a9e8158af77461f6e93bc (diff)
CMake: avoid x${var} tricks
Just passing the variable name to if() will make CMake evaluate it exactly once, without the need for any specific tricks. The x${var} tricks may be necessary for macro() arguments, which are not variables, but here an ordinary variable in a function is tested. Change-Id: Ibf8fc3efd43a6d8ea729eaaaf14ddeaa15804924 Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions