DarkflameServer/cmake/toolchains/linux-gnu.cmake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
364 B
CMake
Raw Normal View History

2024-04-06 04:30:26 +00:00
# Try and find a gcc/g++ install
2024-04-09 01:11:59 +00:00
find_program(GNU_C_COMPILER cc | gcc REQUIRED)
find_program(GNU_CXX_COMPILER c++ | g++ REQUIRED)
2024-04-05 23:06:37 +00:00
# Debug messages
2024-04-09 01:11:59 +00:00
message(DEBUG "GNU_C_COMPILER = ${GNU_C_COMPILER}")
message(DEBUG "GNU_CXX_COMPILER = ${GNU_C_COMPILER}")
2024-04-05 23:06:37 +00:00
# Set compilers to clang
set(CMAKE_C_COMPILER ${GNU_C_COMPILER})
set(CMAKE_CXX_COMPILER ${GNU_CXX_COMPILER})