mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-15 04:17:40 +00:00
Automatically enables ccache if the program is found
This makes it easier to not forget to use this
This commit is contained in:
parent
211aebcfa4
commit
b4893b10db
@ -24,6 +24,12 @@ else()
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)
|
||||
endif()
|
||||
|
||||
find_program(CCACHE_PROGRAM ccache)
|
||||
if(CCACHE_PROGRAM)
|
||||
message(STATUS "CCache enabled")
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
|
||||
endif()
|
||||
|
||||
if (ENABLE_XRAY)
|
||||
add_compile_options(-fxray-instrument)
|
||||
link_libraries(-fxray-instrument)
|
||||
|
Loading…
x
Reference in New Issue
Block a user