mirror of https://github.com/Nheko-Reborn/nheko
parent
0a9d95dfc9
commit
1366b01790
@ -1,26 +0,0 @@ |
|||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") |
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \ |
|
||||||
-Wall \ |
|
||||||
-Wextra \ |
|
||||||
-Werror \ |
|
||||||
-pipe \ |
|
||||||
-Wno-unused-function \ |
|
||||||
-pedantic \ |
|
||||||
-Wunreachable-code") |
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") |
|
||||||
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) |
|
||||||
|
|
||||||
if (GCC_VERSION VERSION_GREATER 4.9) |
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always" ) |
|
||||||
endif() |
|
||||||
endif() |
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always" ) |
|
||||||
endif() |
|
||||||
endif() |
|
||||||
|
|
||||||
if(NOT APPLE AND NOT MSVC) |
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") |
|
||||||
endif() |
|
Loading…
Reference in new issue