From 7edd258f222cc934e54a8983fb3f623101c8ce9a Mon Sep 17 00:00:00 2001 From: tianzhendong <1203886034@qq.com> Date: Sun, 21 May 2023 09:02:40 +0800 Subject: [PATCH] fix linux build bug --- CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbfe64f..ba7efde 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,16 +2,6 @@ project(QtXlsx LANGUAGES CXX) -if(WIN32) - set(CMAKE_PREFIX_PATH "C:/DevelopEnv/Qt/5.15.2/mingw81_64") - set(QT_VERSION "5.15.2") -elseif(UNIX) - set(CMAKE_PREFIX_PATH "/home/tian/Qt5.12.3/5.12.3/gcc_64") - set(QT_VERSION "5.12.3") -# solve program: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' - set(CMAKE_CXX_FLAGS -pthread) -endif() - include_directories(${CMAKE_PREFIX_PATH}/include/QtCore) include_directories(${CMAKE_PREFIX_PATH}/include/QtCore/${QT_VERSION}) include_directories(${CMAKE_PREFIX_PATH}/include/QtCore/${QT_VERSION}/QtCore)