Cleanup: wrap long lines for CMake
This commit is contained in:
@@ -290,7 +290,8 @@ Use pre-compiled headers to speed up compilation."
|
||||
if(WITH_CLANG_TIDY AND (CMAKE_COMPILER_IS_GNUCC OR APPLE))
|
||||
if(WITH_COMPILER_PRECOMPILED_HEADERS)
|
||||
message(STATUS
|
||||
"Clang-Tidy and the current compiler's precompiled headers are incompatible, disabling precompiled headers."
|
||||
"Clang-Tidy and the current compiler's precompiled headers are incompatible, "
|
||||
"disabling precompiled headers."
|
||||
)
|
||||
set(WITH_COMPILER_PRECOMPILED_HEADERS OFF)
|
||||
endif()
|
||||
@@ -644,7 +645,8 @@ Build Cycles kernels with address sanitizer when WITH_COMPILER_ASAN is on, even
|
||||
OFF
|
||||
)
|
||||
set(CYCLES_TEST_DEVICES CPU CACHE STRING "\
|
||||
Run regression tests on the specified device types (CPU CUDA OPTIX HIP HIP-RT METAL METAL-RT ONEAPI ONEAPI-RT)"
|
||||
Run regression tests on the specified device types \
|
||||
(CPU CUDA OPTIX HIP HIP-RT METAL METAL-RT ONEAPI ONEAPI-RT)"
|
||||
)
|
||||
option(WITH_CYCLES_TEST_OSL "\
|
||||
Run additional Cycles test with OSL enabled"
|
||||
@@ -697,7 +699,8 @@ endif()
|
||||
if(NOT APPLE AND NOT (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64"))
|
||||
option(WITH_CYCLES_DEVICE_HIP "Enable Cycles AMD HIP support" ON)
|
||||
option(WITH_CYCLES_HIP_BINARIES "Build Cycles AMD HIP binaries" OFF)
|
||||
# We only support RDNA1 (gfx101X) and newer. Vega and older generations have rendering artifacts and crashing issues.
|
||||
# We only support RDNA1 (gfx101X) and newer.
|
||||
# Vega and older generations have rendering artifacts and crashing issues.
|
||||
set(CYCLES_HIP_BINARIES_ARCH
|
||||
gfx1010 gfx1011 gfx1012
|
||||
gfx1030 gfx1031 gfx1032 gfx1034 gfx1035 gfx1036
|
||||
@@ -830,7 +833,10 @@ Enable GPU drawing related unit testing (draw manager)"
|
||||
OFF
|
||||
)
|
||||
option(WITH_GPU_COMPOSITOR_TESTS "Enable regression testing for GPU compositor" OFF)
|
||||
option(WITH_GPU_MESH_PAINT_TESTS "Enable visual render-based regression testing for mesh painting" OFF)
|
||||
option(WITH_GPU_MESH_PAINT_TESTS "\
|
||||
Enable visual render-based regression testing for mesh painting"
|
||||
OFF
|
||||
)
|
||||
option(WITH_UI_TESTS "\
|
||||
Enable user-interface tests (Experimental)"
|
||||
OFF
|
||||
@@ -892,10 +898,10 @@ Enable tests validating some build-related scripts against the 'system' version
|
||||
)
|
||||
mark_as_advanced(WITH_SYSTEM_PYTHON_TESTS)
|
||||
# We could use `find_package (Python3 COMPONENTS Interpreter)` to set that value automatically.
|
||||
# However, on some buildbots this will give the default python version of the current virtual environment,
|
||||
# which may differ from the OS default python version.
|
||||
# And it would set that global 'python3 exec path' CMake value for all CMake scripts, which could have
|
||||
# unexpected and dangerous side effects.
|
||||
# However, on some buildbots this will give the default Python version of the current virtual
|
||||
# environment, which may differ from the OS default Python version.
|
||||
# And it would set that global 'python3 exec path' CMake value for all CMake scripts,
|
||||
# which could have unexpected and dangerous side effects.
|
||||
# So this has to be set explicitly for all builders.
|
||||
set(TEST_SYSTEM_PYTHON_EXE "" CACHE PATH "Python executable used to run 'system python' tests")
|
||||
mark_as_advanced(TEST_SYSTEM_PYTHON_EXE)
|
||||
@@ -1026,9 +1032,15 @@ endif()
|
||||
|
||||
if(WITH_COMPILER_CODE_COVERAGE)
|
||||
set(_code_coverage_defaults "--coverage")
|
||||
set(COMPILER_CODE_COVERAGE_CFLAGS ${_code_coverage_defaults} CACHE STRING "C flags for code coverage")
|
||||
set(COMPILER_CODE_COVERAGE_CFLAGS
|
||||
${_code_coverage_defaults} CACHE STRING
|
||||
"C flags for code coverage"
|
||||
)
|
||||
mark_as_advanced(COMPILER_CODE_COVERAGE_CFLAGS)
|
||||
set(COMPILER_CODE_COVERAGE_CXXFLAGS ${_code_coverage_defaults} CACHE STRING "C++ flags for code coverage")
|
||||
set(COMPILER_CODE_COVERAGE_
|
||||
CXXFLAGS ${_code_coverage_defaults} CACHE STRING
|
||||
"C++ flags for code coverage"
|
||||
)
|
||||
mark_as_advanced(COMPILER_CODE_COVERAGE_CXXFLAGS)
|
||||
unset(_code_coverage_defaults)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user