mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user