Commit e553985f authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

PKG: regex replace for checking symlink have different behaviour

parent 81d478cb
......@@ -448,8 +448,15 @@ function(is_file_a_symbolic_link file result_var1 result_var2)
set(${result_var1} 1 PARENT_SCOPE)
#Now find where the symlink is linked to.
#Do a regex replace
string(REGEX REPLACE "_file_full_*.*symbolic.link.to."
"" symlinked_to ${file_ov})
if(UNIX)
if(APPLE)
string(REGEX REPLACE "_file_full_*.*symbolic.link.to."
"" symlinked_to ${file_ov})
else(APPLE)
string(REGEX REPLACE "_file_full_*.*symbolic.link.to.."
"" symlinked_to ${file_ov})
endif(APPLE)
#Take out last character which is a single quote
string(REPLACE "'" "" symlinked_to "${symlinked_to}")
#strip for our own sanity
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment