diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-02-09 21:28:08 +0000 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-02-09 21:28:08 +0000 |
commit | fe91d86bf612ed0a9c1fc6cb049d123f4a416312 (patch) | |
tree | df57c46655d7eec7f12c6640ec33263d70512551 /find-modules/FindLibcap.cmake | |
parent | cd2f66b9aa12455b914952c5c61518490d0c172d (diff) | |
download | extra-cmake-modules-fe91d86bf612ed0a9c1fc6cb049d123f4a416312.tar.gz extra-cmake-modules-fe91d86bf612ed0a9c1fc6cb049d123f4a416312.tar.bz2 |
Fix relative path edge case in ECMGeneratePriFile
When the qt install prefix and the qt host data path are the same,
CMake's RELATIVE_PATH file path function will return the empty string.
This made us accidentally set ECM_MKSPECS_INSTALL_DIR to /mkspecs/modules.
Fix this by explicitly checking for the empty string. Once we can depend on
CMake 3.20, we can use CMake's builtin function for joining paths instead.
Diffstat (limited to 'find-modules/FindLibcap.cmake')
0 files changed, 0 insertions, 0 deletions