forked from ps2dev/ps2sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michal Jenikovsky <[email protected]>
- Loading branch information
Showing
4 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
find_program(CCACHE_FOUND "ccache") | ||
set(CCACHE_SUPPORT ON CACHE BOOL "Enable ccache support") | ||
if (CCACHE_FOUND AND CCACHE_SUPPORT) | ||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | ||
# without this compiler messages in `make` backend would be uncolored | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=auto") | ||
endif() | ||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "ccache") | ||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "ccache") | ||
endif(CCACHE_FOUND AND CCACHE_SUPPORT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,5 @@ ENDFUNCTION() | |
SET(PLATFORM_PS2 TRUE) | ||
SET(IOP TRUE) | ||
SET(PS2 TRUE) | ||
|
||
INCLUDE(${PS2DEV}/share/ccache.cmake) |