From be3f578ce5d69f1dc82f612428cef8125b78a6c7 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Mon, 26 Jun 2023 11:42:27 +0800 Subject: [PATCH] Update the compile script file --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12b0045e..f3b1c926 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,7 @@ include(FindPkgConfig) include(GNUInstallDirs) list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") +#list(APPEND CMAKE_PREFIX_PATH "xxx.cmake find path") find_package(PkgConfig) @@ -206,7 +207,9 @@ if(Qt6Core_FOUND) endif() if(NOT Qt5Core_FOUND AND NOT Qt6Core_FOUND) - message(FATAL_ERROR "Please install Qt5 or Qt6!") + message("Error!The qt5 or qt6 can't find, if them has been installed, please append the install path to CMAKE_PREFIX_PATH, the command as:") + message("list(APPEND CMAKE_PREFIX_PATH \"xxx install path\")" ) + message(FATAL_ERROR "Can't find Qt5 or Qt6!") endif() #===============================================================================