DarkflameServer/cmake/toolchains/linux-gcc.cmake
2024-04-05 23:30:26 -05:00

12 lines
341 B
CMake

# Try and find a gcc/g++ install
find_program(GNU_C_COMPILER gcc REQUIRED)
find_program(GNU_CXX_COMPILER g++ REQUIRED)
# Debug messages
message("GNU_C_COMPILER = ${GNU_C_COMPILER}")
message("GNU_CXX_COMPILER = ${GNU_C_COMPILER}")
# Set compilers to clang
set(CMAKE_C_COMPILER ${GNU_C_COMPILER})
set(CMAKE_CXX_COMPILER ${GNU_CXX_COMPILER})