From a4c61568a4ccfd766716569e2ca4251d1e795fa8 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Fri, 22 May 2020 17:20:22 -0400 Subject: [PATCH] Export the Qt5_DIR when installing Qt5 so that other installers can use it. Signed-off-by: Michael Jackson --- projects/Qt5.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/Qt5.cmake b/projects/Qt5.cmake index ad9a291..0362d51 100644 --- a/projects/Qt5.cmake +++ b/projects/Qt5.cmake @@ -262,10 +262,13 @@ FILE(APPEND ${EMsoft_SDK_FILE} "#----------------------------------------------- FILE(APPEND ${EMsoft_SDK_FILE} "# Qt ${qt5_version_full} Library\n") if(APPLE) FILE(APPEND ${EMsoft_SDK_FILE} "set(Qt5_DIR \"\${EMsoft_SDK}/${extProjectName}/${qt5_version_short}/clang_64/lib/cmake/Qt5\" CACHE PATH \"\")\n") + set(Qt5_DIR "${EMsoft_SDK}/${extProjectName}/${qt5_version_short}/clang_64/lib/cmake/Qt5" CACHE PATH "") elseif(WIN32) FILE(APPEND ${EMsoft_SDK_FILE} "set(Qt5_DIR \"\${EMsoft_SDK}/${extProjectName}/${qt5_version_short}/${QT_MSVC_VERSION_NAME}/lib/cmake/Qt5\" CACHE PATH \"\")\n") + set(Qt5_DIR "${EMsoft_SDK}/${extProjectName}/${qt5_version_short}/${QT_MSVC_VERSION_NAME}/lib/cmake/Qt5" CACHE PATH "") else() FILE(APPEND ${EMsoft_SDK_FILE} "set(Qt5_DIR \"\${EMsoft_SDK}/${extProjectName}/${qt5_version_short}/gcc_64/lib/cmake/Qt5\" CACHE PATH \"\")\n") + set(Qt5_DIR "${EMsoft_SDK}/${extProjectName}/${qt5_version_short}/gcc_64/lib/cmake/Qt5" CACHE PATH "") endif() FILE(APPEND ${EMsoft_SDK_FILE} "set(CMAKE_MODULE_PATH \${CMAKE_MODULE_PATH} \${Qt5_DIR})\n")