让 Centos 使用默认的编译器

This commit is contained in:
Tian jianyong 2025-05-09 16:17:34 +08:00
parent 46c23cc1dd
commit faf4f64aec

View File

@ -1,11 +1,5 @@
cmake_minimum_required(VERSION 3.14...3.27)
#
if(NOT APPLE)
set(CMAKE_C_COMPILER "/usr/local/bin/gcc")
set(CMAKE_CXX_COMPILER "/usr/local/bin/g++")
endif()
# CMake
cmake_policy(SET CMP0074 NEW) #