• Harald Sitter's avatar
    change QT_IMPORTS_DIR to also cover false and NOTFOUND · f93278cb
    Harald Sitter authored
    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
    REVIEW: 125880
CMakeLists.txt 3.44 KB