diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-03-24 22:58:14 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-03-25 11:16:48 +0100 |
commit | c269d8f0862fd2c581d57584e8d7e2493f387ee7 (patch) | |
tree | 962902fecfcc4c62fed7a4029a476f1fd8fa3924 /src | |
parent | f716a8735285d3919164a0faadc542a866465d3d (diff) |
CMake: Fix the re-computed value of INSTALL_*DIR variables
For INSTALL_*DIR variables that have the the same value as
CMAKE_INSTALL_PREFIX, a second cmake run cleared the value. This is
because file(RELATIVE_PATH) returns the empty string if we pass the same
absolute paths.
Fix this by checking the return value of file(RELATIVE_PATH) for the
empty string and setting it to ".".
It's a limitation of qmake that empty strings are not handled as ".".
Change-Id: I8fc4d1eabcc9d5634be2f3741b0002a347dd17e6
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions