cmake fix
This commit is contained in:
parent
f70201131c
commit
8747d65e7d
@ -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()
|
||||||
|
Reference in New Issue
Block a user