mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 09:08:58 -05:00
Tests: Update RunCMake.DependencyGraph to canonicalize paths when comparing
A symbolic link in the path was causing false path mismatches. Resolving the symlinks makes both paths identical. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
This commit is contained in:
committed by
Brad King
parent
49d7e0c91d
commit
f6f048898d
@@ -10,7 +10,8 @@ function(check_files dir)
|
||||
set(actual)
|
||||
foreach(i IN LISTS glob)
|
||||
if(NOT i MATCHES "(\\.manifest$)|(\\.exp$)|(\\.tds$)")
|
||||
list(APPEND actual ${i})
|
||||
get_filename_component(real_path ${i} REALPATH)
|
||||
list(APPEND actual ${real_path})
|
||||
endif()
|
||||
endforeach()
|
||||
list(REMOVE_DUPLICATES actual)
|
||||
|
||||
Reference in New Issue
Block a user