1 Star 0 Fork 18

maqi/extra-cmake-modules

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
extra-cmake-modules-5.89.0-qt_prefix.patch 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Venland 提交于 2022-07-04 13:49 . update to upstream version 5.95.0
From 296dfb9eb4a408d40a8c99d710bdf86f19d3149e Mon Sep 17 00:00:00 2001
From: loong_C <loong_c@yeah.net>
Date: Mon, 4 Jul 2022 14:56:38 +0800
Subject: [PATCH] extra-cmake-modules-5.89.0-qt_prefix
---
kde-modules/KDEInstallDirs5.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kde-modules/KDEInstallDirs5.cmake b/kde-modules/KDEInstallDirs5.cmake
index 0341196..55282a7 100644
--- a/kde-modules/KDEInstallDirs5.cmake
+++ b/kde-modules/KDEInstallDirs5.cmake
@@ -236,7 +236,7 @@ include("${ECM_MODULE_DIR}/ECMQueryQt.cmake")
set(_default_KDE_INSTALL_USE_QT_SYS_PATHS OFF)
if(NOT DEFINED KDE_INSTALL_USE_QT_SYS_PATHS)
ecm_query_qt(qt_install_prefix_dir QT_INSTALL_PREFIX TRY)
- if(qt_install_prefix_dir STREQUAL "${CMAKE_INSTALL_PREFIX}")
+ if( (qt_install_prefix_dir STREQUAL "${CMAKE_INSTALL_PREFIX}") OR ( ("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr") AND (qt_install_prefix_dir STREQUAL "${CMAKE_INSTALL_FULL_LIBDIR}/qt5")) )
message(STATUS "Installing in the same prefix as Qt, adopting their path scheme.")
set(_default_KDE_INSTALL_USE_QT_SYS_PATHS ON)
endif()
--
2.20.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/maqi77/extra-cmake-modules.git
git@gitee.com:maqi77/extra-cmake-modules.git
maqi77
extra-cmake-modules
extra-cmake-modules
master

搜索帮助