mirror of https://github.com/PentHertz/srsLTE.git
Making sure that we can get colored output when using Ninja instead of Make.
This commit is contained in:
parent
cf548fe807
commit
5a1883b748
|
@ -387,6 +387,11 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||
set(CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup")
|
||||
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
|
||||
# Add colored output when using the Ninja generator
|
||||
if("Ninja" STREQUAL ${CMAKE_GENERATOR})
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdiagnostics-color=always")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")
|
||||
endif()
|
||||
|
||||
# Add -Werror to C/C++ flags for newer compilers
|
||||
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
|
||||
|
|
Loading…
Reference in New Issue