From 052c983fcedd9f5c1a0a2139072b30e2953a1ffb Mon Sep 17 00:00:00 2001 From: Tian jianyong <11429339@qq.com> Date: Fri, 9 May 2025 12:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Linux=20=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E4=B8=8B=E7=BC=96=E8=AF=91=E5=99=A8=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01f2fd8..26aa2e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.14...3.27) # 设置编译器 if(NOT APPLE) - set(CMAKE_C_COMPILER "/opt/rh/devtoolset-11/root/usr/bin/gcc") - set(CMAKE_CXX_COMPILER "/opt/rh/devtoolset-11/root/usr/bin/g++") + set(CMAKE_C_COMPILER "/usr/local/bin/gcc") + set(CMAKE_CXX_COMPILER "/usr/local/bin/g++") endif() # 设置 CMake 策略(移除非必要的新策略)