Skip to content

Commit

Permalink
add necessary text for ccache in makefile to prevent confusing Ninja …
Browse files Browse the repository at this point in the history
…user
  • Loading branch information
zxkmm committed Nov 7, 2024
1 parent 83a488e commit 509b316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ if(USE_CCACHE)
if(CCACHE_FOUND)
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_FOUND})
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_FOUND})
message(STATUS "Using ccache, please keep an eye on this because sometimes it's not quite stable and generated unusable binary.\n-- use `cmake -DUSE_CCACHE=OFF ..` to turn off ccache")
message(STATUS "Using ccache, please keep an eye on this because sometimes it's not quite stable and generated unusable binary.\n-- use `cmake -DUSE_CCACHE=OFF ..` or `cmake -G Ninja -DUSE_CCACHE=OFF .. ` to to turn off ccache")
else()
message(WARNING "ccache is enabled but not found on the system.")
endif()
else()
message(STATUS "Not using ccache, use `cmake -DUSE_CCACHE=ON ..` to turn on ccache")
message(STATUS "Not using ccache, use `cmake -DUSE_CCACHE=ON ..` or `cmake -G Ninja -DUSE_CCACHE=ON ..` to turn on ccache")
endif()
message(STATUS "-------^ ccache info--------")

Expand Down

0 comments on commit 509b316

Please sign in to comment.