Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 21 Lines | |||||
string(REPLACE "%s" ${COPYRIGHT_HOLDERS_SUBSTITUTION} COPYRIGHT_HOLDERS_FINAL ${COPYRIGHT_HOLDERS}) | string(REPLACE "%s" ${COPYRIGHT_HOLDERS_SUBSTITUTION} COPYRIGHT_HOLDERS_FINAL ${COPYRIGHT_HOLDERS}) | ||||
# Add path for custom modules | # Add path for custom modules | ||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) | list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) | ||||
# 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. | |||||
find_program(CCACHE ccache) | |||||
if(CCACHE) | |||||
message(STATUS "Using ccache: ${CCACHE}") | |||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) | |||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${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) | ||||
endif() | endif() | ||||
# Find the python interpreter. This is required for several targets. | # Find the python interpreter. This is required for several targets. | ||||
find_package(PythonInterp 3.5 REQUIRED) | find_package(PythonInterp 3.5 REQUIRED) | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |