mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-27 22:04:33 +01:00
45d1f88ea7
The name "CMakeTests" is inaccurate and irregular.
12 lines
515 B
CMake
12 lines
515 B
CMake
find_program(CCACHE_BIN ccache)
|
|
if(CCACHE_BIN)
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_BIN})
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_BIN})
|
|
|
|
# ccache uses -I when compiling without preprocessor, which makes clang complain.
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qunused-arguments -fcolor-diagnostics")
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments -fcolor-diagnostics")
|
|
endif()
|
|
endif()
|