Skip to content

Commit a4542d7

Browse files
committed
Update CMake documentation (#6535)
* Allow third parties to externally override SOVERSION Debian and other third-party packagers might need or want to patch our sources for a variety of reasons. In those cases, they might also need to override the SOVERSION. See here for a practical example: https://salsa.debian.org/pkg-llvm-team/halide/-/blob/f881de70cd83095053e13047b63f61faf6bc7a36/debian/patches/0006-Fixup-libhalide-version-soversion-for-debian-package.patch * Update CMake documentation. * Fix typo * Add link to ToC (cherry picked from commit 95737be)
1 parent 7c718bc commit a4542d7

3 files changed

Lines changed: 130 additions & 55 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ endif()
4949

5050
# Build Halide with ccache if the package is present
5151
option(Halide_CCACHE_BUILD "Set to ON for a ccache enabled build" OFF)
52+
mark_as_advanced(Halide_CCACHE_BUILD)
5253
if (Halide_CCACHE_BUILD)
5354
find_program(CCACHE_PROGRAM ccache)
5455
if (CCACHE_PROGRAM)
@@ -58,6 +59,7 @@ if (Halide_CCACHE_BUILD)
5859
# if issues occur (but we don't use any of the time macros so should be irrelevant).
5960
set(Halide_CCACHE_PARAMS CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines
6061
CACHE STRING "Parameters to pass through to ccache")
62+
mark_as_advanced(Halide_CCACHE_PARAMS)
6163
set(CMAKE_C_COMPILER_LAUNCHER ${CMAKE_COMMAND} -E env ${Halide_CCACHE_PARAMS} ${CCACHE_PROGRAM})
6264
set(CMAKE_CXX_COMPILER_LAUNCHER ${CMAKE_COMMAND} -E env ${Halide_CCACHE_PARAMS} ${CCACHE_PROGRAM})
6365
message(STATUS "Enabling ccache usage for building.")

0 commit comments

Comments
 (0)