File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ if(WIN32 AND QT_DEPLOY_FILES)
8787 set (QT_BASE_DIR "C:/Qt" )
8888 if (QT_CANDIDATE_DIR AND EXISTS "${QT_CANDIDATE_DIR} " )
8989 message (STATUS "Using preferred Qt directory for Qt${QT_MAJOR} ${PREFERRED_QT_VER} : ${QT_CANDIDATE_DIR} " )
90- set ( CMAKE_PREFIX_PATH "${QT_CANDIDATE_DIR} " )
90+ list ( APPEND CMAKE_PREFIX_PATH "${QT_CANDIDATE_DIR} " )
9191 find_package (Qt${QT_MAJOR} ${PREFERRED_QT_VER} COMPONENTS Widgets SerialPort Multimedia MultimediaWidgets REQUIRED)
9292 else ()
9393 # Find all subdirectories in the Qt base directory
@@ -104,7 +104,7 @@ if(WIN32 AND QT_DEPLOY_FILES)
104104 # Debug message to verify the latest Qt directory
105105 if (QT_LATEST_DIR)
106106 message (STATUS "Latest Qt directory for Qt${QT_MAJOR} : ${QT_LATEST_DIR} " )
107- set ( CMAKE_PREFIX_PATH "${QT_LATEST_DIR} /msvc2022_64/lib/cmake" )
107+ list ( APPEND CMAKE_PREFIX_PATH "${QT_LATEST_DIR} /msvc2022_64/lib/cmake" )
108108 else ()
109109 message (FATAL_ERROR "No Qt${QT_MAJOR} installation found in ${QT_BASE_DIR} " )
110110 endif ()
You can’t perform that action at this time.
0 commit comments