CPack/RPM: Fix warn of not relocatable path

The incorrect variable name may fail to warn about not relocatable paths.

Signed-off-by: Donald Lee <donald790411@gmail.com>
This commit is contained in:
Donald Lee
2025-05-14 18:40:59 +08:00
parent c3d20800c6
commit 4244f704b4

View File

@@ -185,12 +185,12 @@ function(cpack_rpm_prepare_relocation_paths)
string(SUBSTRING "${REL_PATH_}" 0 2 PREFIX_)
if(NOT "${PREFIX_}" STREQUAL "..")
set(TPM_PATH_FOUND_ TRUE)
set(TMP_PATH_FOUND_ TRUE)
break()
endif()
endforeach()
if(NOT TPM_PATH_FOUND_)
if(NOT TMP_PATH_FOUND_)
message(AUTHOR_WARNING "CPackRPM:Warning: Path ${TMP_PATH} is not on one of the relocatable paths! Package will be partially relocatable.")
endif()
endforeach()