fix syntax error

This commit is contained in:
2025-12-18 09:02:48 -06:00
parent e6ab74c351
commit ad5b8e4482

View File

@@ -775,8 +775,8 @@ build_libx265() {
IFS='.' read -r verMajor _ _ <<<"${cmakeVersion}" IFS='.' read -r verMajor _ _ <<<"${cmakeVersion}"
local policyFlag='' local policyFlag=''
if [[ ! ${verMajor} -lt 4 ]]; then if [[ ! ${verMajor} -lt 4 ]]; then
remove_line "cmake_policy(SET CMP0025 OLD)" "source/CMakeLists.txt" || return 1 remove_line "source/CMakeLists.txt" "cmake_policy(SET CMP0025 OLD)" || return 1
remove_line "cmake_policy(SET CMP0054 OLD)" "source/CMakeLists.txt" || return 1 remove_line "source/CMakeLists.txt" "cmake_policy(SET CMP0054 OLD)" || return 1
policyFlag="-DCMAKE_POLICY_VERSION_MINIMUM=3.5" policyFlag="-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
fi fi