Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
529b53be
Commit
529b53be
authored
Jun 25, 2019
by
Guillaume Pasero
Browse files
PKG: fix detection of shared objects
parent
7bd51369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Packaging/detect_using_file_command.cmake
View file @
529b53be
...
...
@@ -115,10 +115,10 @@ function(detect_using_file_command input_file result_type result_dir)
# Patch file command returning shared-oject for executable on Linux when -PIE is used.
if
(
LINUX
)
get_filename_component
(
input_file_DIR
${
input_file
}
DIRECTORY
)
get_filename_component
(
input_file_dIR
${
input_file_DIR
}
NAME
)
string
(
TOLOWER
"
${
input_file_DIR
}
"
input_file_DIR
)
if
(
${
input_file_DIR
}
MATCHES
"bin"
)
message
(
WARNING
"
${
input_file
}
detected as shared-object
.
"
)
get_filename_component
(
dir_name
${
input_file_DIR
}
NAME
)
string
(
TOLOWER
"
${
dir_name
}
"
dir_name_l
)
if
(
"
${
dir_name_l
}
"
STREQUAL
"bin"
)
message
(
STATUS
"
${
input_file
}
detected as shared-object
, but processed as executable
"
)
set
(
detected_type PROGRAMS
)
set
(
detected_dir bin
)
endif
()
...
...
Write
Preview
Supports
Markdown
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