From 60cf8a3cae6bda6801188036d9fa67f315e6a2b1 Mon Sep 17 00:00:00 2001 From: luocai Date: Thu, 7 Dec 2023 19:46:15 +0800 Subject: [PATCH] Fix compile failed. --- CMakeLists.txt | 4 +++- Universal/ProcessUtility.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c350d46..afc990e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,9 @@ if(TARGET Boost::url) add_subdirectory(HttpProxy) endif() -add_subdirectory(QtComponets) +if(TARGET Qt${QT_VERSION_MAJOR}::Core) + add_subdirectory(QtComponets) +endif() if(TARGET Boost::log) add_subdirectory(Universal) diff --git a/Universal/ProcessUtility.cpp b/Universal/ProcessUtility.cpp index 81bb17b..71f9f19 100644 --- a/Universal/ProcessUtility.cpp +++ b/Universal/ProcessUtility.cpp @@ -1,6 +1,7 @@ #include "ProcessUtility.h" #include "BoostLog.h" -#include "boost/algorithm/string.hpp" +#include +#include #include #include #ifdef __linux__