[Marble-devel] Review Request 125880: change QT_IMPORTS_DIR to also cover false and NOTFOUND
Harald Sitter
sitter at kde.org
Sat Oct 31 06:32:26 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125880/
-----------------------------------------------------------
(Updated Oct. 31, 2015, 6:32 a.m.)
Status
------
This change has been marked as submitted.
Review request for Marble and Bhushan Shah.
Changes
-------
Submitted with commit f93278cbeeeb5c1a5987ff97d47c81e467c986ab by Dennis Nienhüser on behalf of Harald Sitter to branch master.
Repository: marble
Description
-------
if(DEFINED var) only checks if the var is defined, but with certain Finders
var can be set but NOTFOUND.
For the purposes of the if at hand we want to make sure that we have a
*valid* QT_IMPORTS_DIR not just a set one. To that end if(var) is the
correct instruction here as var being undefined, 0, OFF, IGNORE or NOTFOUND
will end up as a false condition making sure that we only set
MARBLE_QT_IMPORTS_DIR to the value of QT_IMPORTS_DIR iff it is a truthy
value.
Diffs
-----
src/CMakeLists.txt 063d1cae56d315d94d33e7f75089ea9e51ec6cb0
Diff: https://git.reviewboard.kde.org/r/125880/diff/
Testing
-------
checked that if(var) in fact evaluates to false on undefined vars. I do not have a test case at hand as this is to get rid of a debian patch that never was forwarded http://anonscm.debian.org/cgit/pkg-kde/applications/marble.git/tree/debian/patches/fix_qmake_fallback.diff?id=74c0c6fb8ac8cdad09c6d7ec86f881af10e029a8
Thanks,
Harald Sitter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20151031/9c71dc97/attachment.html>
More information about the Marble-devel
mailing list