Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
a3c1864d
Commit
a3c1864d
authored
Sep 06, 2016
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check file exist before adding it to to be installed list
parent
e023c73f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
SuperBuild/Packaging/PackageHelper.cmake
SuperBuild/Packaging/PackageHelper.cmake
+11
-9
No files found.
SuperBuild/Packaging/PackageHelper.cmake
View file @
a3c1864d
...
...
@@ -748,17 +748,19 @@ function(func_process_deps infile)
${
CMAKE_BINARY_DIR
}
/make_symlinks_temp
"ln -sf $OUT_DIR/lib/
${
linked_to_file
}
$OUT_DIR/lib/
${
basename_of_sofile
}
\n
"
)
#message("${sofile} is a symlink to ${linked_to_file}")
#
message("${sofile} is a symlink to ${linked_to_file}")
else
()
# is_symlink
if
(
NOT
"
${
basename_of_sofile
}
"
MATCHES
"otbapp_"
)
file
(
APPEND
${
CMAKE_BINARY_DIR
}
/install_to_
${
DEST_LIB_DIR
}
"
${
sofile
}
\n
"
)
#just install the so file to <staging-dir>/lib
#install(FILES "${sofile}" DESTINATION ${PKG_STAGE_DIR}/lib MESSAGE_NEVER)
# Finally touch a file in temp directory for globbing later
# message("touching ${basename_of_sofile}")
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E touch
"
${
CMAKE_BINARY_DIR
}
/temp_so_names_dir/
${
basename_of_sofile
}
"
)
endif
()
#if(.. MATCHES "otbapp_")
endif
()
#is_symlink
if
(
EXISTS
${
SEARCHDIR
}
/
${
sofile
}
)
file
(
APPEND
${
CMAKE_BINARY_DIR
}
/install_to_
${
DEST_LIB_DIR
}
"
${
sofile
}
\n
"
)
#just install the so file to <staging-dir>/lib
#install(FILES "${sofile}" DESTINATION ${PKG_STAGE_DIR}/lib MESSAGE_NEVER)
# Finally touch a file in temp directory for globbing later
# message("touching ${basename_of_sofile}")
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E touch
"
${
CMAKE_BINARY_DIR
}
/temp_so_names_dir/
${
basename_of_sofile
}
"
)
endif
()
# ( EXISTS ${SEARCHDIR}/${sofile} )
endif
()
# if(.. MATCHES "otbapp_")
endif
()
# is_symlink
endif
()
#is_valid
endforeach
()
endif
(
is_executable
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment