Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 22 Lines | |||||
) | ) | ||||
# Make contrib script accessible. | # Make contrib script accessible. | ||||
set(CONTRIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/contrib) | set(CONTRIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/contrib) | ||||
# If ccache is available, then use it. | # If ccache is available, then use it. | ||||
find_program(CCACHE ccache) | find_program(CCACHE ccache) | ||||
if(CCACHE) | if(CCACHE) | ||||
message(STATUS "Using ccache: ${CCACHE}") | |||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) | ||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) | set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) | ||||
endif(CCACHE) | endif(CCACHE) | ||||
# Default to RelWithDebInfo configuration | # Default to RelWithDebInfo configuration | ||||
if(NOT CMAKE_BUILD_TYPE) | if(NOT CMAKE_BUILD_TYPE) | ||||
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING | set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING | ||||
"Select the configuration for the build" FORCE) | "Select the configuration for the build" FORCE) | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |