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 策略(移除非必要的新策略)