Skip to content

Commit

Permalink
paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mradugin authored Jul 14, 2024
1 parent 1779756 commit 9f583b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Findccache.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ if (CCACHE_FOUND)
# Support Unix Makefiles and Ninja
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
if (CMAKE_SYSTEM_NAME MATCHES "MSYS")
message(WARNING "before: ${CMAKE_C_COMPILER}")
FILE(TO_CMAKE_PATH ${CMAKE_C_COMPILER} CMAKE_C_COMPILER)
FILE(TO_CMAKE_PATH ${CMAKE_CXX_COMPILER} CMAKE_CXX_COMPILER)
message(WARNING "after: ${CMAKE_C_COMPILER}")
endif()
else()
message(WARNING "Unsupported generator for compiler cache: ${CMAKE_GENERATOR}")
set(CCACHE_SUPPORTED NO)
Expand Down

0 comments on commit 9f583b8

Please sign in to comment.