Merge branch 'cpack_rpm_mulit_prefix_fixup' into release

This commit is contained in:
Brad King 2015-02-11 11:08:37 -05:00
commit da92cdab52
1 changed files with 6 additions and 1 deletions

View File

@ -455,7 +455,12 @@ function(cpack_rpm_prepare_relocation_paths)
endforeach() endforeach()
# warn about all the paths that are not relocatable # warn about all the paths that are not relocatable
cmake_policy(PUSH)
# Tell file(GLOB_RECURSE) not to follow directory symlinks
# even if the project does not set this policy to NEW.
cmake_policy(SET CMP0009 NEW)
file(GLOB_RECURSE FILE_PATHS_ "${WDIR}/*") file(GLOB_RECURSE FILE_PATHS_ "${WDIR}/*")
cmake_policy(POP)
foreach(TMP_PATH ${FILE_PATHS_}) foreach(TMP_PATH ${FILE_PATHS_})
string(LENGTH "${WDIR}" WDIR_LEN) string(LENGTH "${WDIR}" WDIR_LEN)
string(SUBSTRING "${TMP_PATH}" ${WDIR_LEN} -1 TMP_PATH) string(SUBSTRING "${TMP_PATH}" ${WDIR_LEN} -1 TMP_PATH)