mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Use 'REQUIRED' instead of custom error message when ccache is not found
This commit is contained in:
parent
721c189b20
commit
25be15a023
@ -81,10 +81,7 @@ endif()
|
||||
|
||||
option(ENABLE_CCACHE "Speed up recompilation by caching previous compilations" OFF)
|
||||
if(ENABLE_CCACHE)
|
||||
find_program(CCACHE ccache)
|
||||
if(CCACHE-NOTFOUND)
|
||||
message(FATAL_ERROR "'ccache' could not be found; install it or set ENABLE_CCACHE=OFF.")
|
||||
endif()
|
||||
find_program(CCACHE ccache REQUIRED)
|
||||
endif()
|
||||
|
||||
# On Linux, use ccache via CMAKE_CXX_COMPILER_LAUNCHER.
|
||||
|
Loading…
x
Reference in New Issue
Block a user