Merge topic 'fix-warn-of-not-relocatable'

4244f704b4 CPack/RPM: Fix warn of not relocatable path

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10776
This commit is contained in:
Brad King
2025-05-15 14:37:11 +00:00
committed by Kitware Robot
+2 -2
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()