mirror of
https://github.com/aseprite/aseprite.git
synced 2024-09-02 21:19:10 +00:00
Apply suggestions from code review
Co-authored-by: David Capello <davidcapello@gmail.com>
This commit is contained in:
parent
1f7c985735
commit
1e24d69db6
@ -78,7 +78,7 @@ option(ENABLE_DEVMODE "Compile vesion for developers" off)
|
|||||||
option(ENABLE_UI "Compile UI (turn off to compile CLI-only version)" on)
|
option(ENABLE_UI "Compile UI (turn off to compile CLI-only version)" on)
|
||||||
option(FULLSCREEN_PLATFORM "Enable fullscreen by default" off)
|
option(FULLSCREEN_PLATFORM "Enable fullscreen by default" off)
|
||||||
option(ENABLE_CLANG_TIDY "Enable static analysis" off)
|
option(ENABLE_CLANG_TIDY "Enable static analysis" off)
|
||||||
option(ENABLE_CCACHE "Use CCache to improve recompilation speed (optional)" ON)
|
option(ENABLE_CCACHE "Use CCache to improve recompilation speed (optional)" on)
|
||||||
set(CUSTOM_WEBSITE_URL "" CACHE STRING "Enable custom local webserver to check updates")
|
set(CUSTOM_WEBSITE_URL "" CACHE STRING "Enable custom local webserver to check updates")
|
||||||
|
|
||||||
if(ENABLE_NEWS OR ENABLE_UPDATER)
|
if(ENABLE_NEWS OR ENABLE_UPDATER)
|
||||||
@ -170,14 +170,14 @@ set(ZLIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
|
|||||||
# Search in the "cmake" directory for additional CMake modules.
|
# Search in the "cmake" directory for additional CMake modules.
|
||||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
find_package(CCache)
|
if(ENABLE_CCACHE)
|
||||||
|
find_package(CCache)
|
||||||
if (CCache_FOUND AND ENABLE_CCACHE)
|
if(CCache_FOUND)
|
||||||
# Use e.g. "ccache clang++" instead of "clang++"
|
# Use e.g. "ccache clang++" instead of "clang++"
|
||||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCache_EXECUTABLE}")
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCache_EXECUTABLE}")
|
||||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CCache_EXECUTABLE}")
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CCache_EXECUTABLE}")
|
||||||
endif (CCache_FOUND AND ENABLE_CCACHE)
|
endif()
|
||||||
|
endif()
|
||||||
# Put libraries into "lib".
|
# Put libraries into "lib".
|
||||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user