cmake fix

This commit is contained in:
fluttershy 2025-01-20 16:19:31 +05:00
parent f70201131c
commit 8747d65e7d

View File

@ -19,10 +19,10 @@ find_library(IXWEBSOCKET_LIBRARIES ixwebsocket)
if(NOT CMAKE_C_COMPILER OR NOT CLANG_CXX_COMPILER) if(NOT CMAKE_C_COMPILER OR NOT CLANG_CXX_COMPILER)
message(STATUS "clang not found") message(STATUS "clang not found")
set(CMAKE_C_COMPILER "gcc") set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER "g++") set(CMAKE_CXX_COMPILER g++)
find_program(CMAKE_C_COMPILER clang) find_program(CMAKE_C_COMPILER gcc)
find_program(CLANG_CXX_COMPILER clang++) find_program(CLANG_CXX_COMPILER g++)
if(NOT CMAKE_C_COMPILER OR NOT CLANG_CXX_COMPILER) if(NOT CMAKE_C_COMPILER OR NOT CLANG_CXX_COMPILER)
message(FATAL_ERROR "gcc not found") message(FATAL_ERROR "gcc not found")
endif() endif()