mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Use a proper way to enable compiler diagnostics with color.
This commit is contained in:
parent
7792b95443
commit
f6882e2a5d
@ -28,9 +28,6 @@ endif()
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
|
add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
|
||||||
add_compile_options(/MP)
|
add_compile_options(/MP)
|
||||||
else()
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fdiagnostics-color=always")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(EMSCRIPTEN)
|
if(EMSCRIPTEN)
|
||||||
@ -53,3 +50,5 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT EMSCRIPTEN)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
file(GENERATE OUTPUT .gitignore CONTENT "*")
|
file(GENERATE OUTPUT .gitignore CONTENT "*")
|
||||||
|
|
||||||
|
set(CMAKE_COLOR_DIAGNOSTICS ON)
|
Loading…
Reference in New Issue
Block a user