mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Make suggested changes
This commit is contained in:
@@ -81,11 +81,11 @@ endif()
|
|||||||
|
|
||||||
# On Linux, use -DCMAKE_CXX_COMPILER_LAUNCHER=ccache instead.
|
# On Linux, use -DCMAKE_CXX_COMPILER_LAUNCHER=ccache instead.
|
||||||
# The iOS and MSVC builds each require some configuration, which is enabled by the following option:
|
# The iOS and MSVC builds each require some configuration, which is enabled by the following option:
|
||||||
if(CMAKE_GENERATOR MATCHES "Xcode" OR "Visual Studio")
|
if(MSVC OR (CMAKE_GENERATOR STREQUAL "Xcode"))
|
||||||
option(ENABLE_CCACHE "Speed up recompilation by caching previous compilations" ON)
|
option(ENABLE_CCACHE "Speed up recompilation by caching previous compilations" ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_CCACHE)
|
if(ENABLE_CCACHE AND (CMAKE_GENERATOR STREQUAL "Xcode"))
|
||||||
find_program(CCACHE ccache REQUIRED)
|
find_program(CCACHE ccache REQUIRED)
|
||||||
if(CCACHE)
|
if(CCACHE)
|
||||||
# https://stackoverflow.com/a/36515503/2278742
|
# https://stackoverflow.com/a/36515503/2278742
|
||||||
|
Reference in New Issue
Block a user