Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ff877af2
Commit
ff877af2
authored
Jul 02, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14929 from alalek:cmake_rpath_link_support
parents
350532ea
bc79f477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
OpenCVCompilerOptions.cmake
cmake/OpenCVCompilerOptions.cmake
+20
-0
No files found.
cmake/OpenCVCompilerOptions.cmake
View file @
ff877af2
...
@@ -396,3 +396,23 @@ macro(ocv_add_modules_compiler_options)
...
@@ -396,3 +396,23 @@ macro(ocv_add_modules_compiler_options)
add_definitions
(
-DOPENCV_ENABLE_MEMORY_SANITIZER=1
)
add_definitions
(
-DOPENCV_ENABLE_MEMORY_SANITIZER=1
)
endif
()
endif
()
endmacro
()
endmacro
()
# adjust -Wl,-rpath-link
if
(
CMAKE_SKIP_RPATH
)
if
((
NOT CMAKE_CROSSCOMPILING OR OPENCV_ENABLE_LINKER_RPATH_LINK_ORIGIN
)
AND NOT OPENCV_SKIP_LINKER_RPATH_LINK_ORIGIN
)
if
(
DEFINED CMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN
)
list
(
APPEND CMAKE_PLATFORM_RUNTIME_PATH
"
${
CMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN
}
"
)
else
()
list
(
APPEND CMAKE_PLATFORM_RUNTIME_PATH
"
\$
ORIGIN"
)
endif
()
elseif
(
NOT OPENCV_SKIP_LINKER_RPATH_LINK_BINARY_LIB
)
list
(
APPEND CMAKE_PLATFORM_RUNTIME_PATH
"
${
LIBRARY_OUTPUT_PATH
}
"
)
endif
()
endif
()
if
(
OPENCV_EXTRA_RPATH_LINK_PATH
)
string
(
REPLACE
":"
";"
OPENCV_EXTRA_RPATH_LINK_PATH_
"
${
OPENCV_EXTRA_RPATH_LINK_PATH
}
"
)
list
(
APPEND CMAKE_PLATFORM_RUNTIME_PATH
${
OPENCV_EXTRA_RPATH_LINK_PATH_
}
)
if
(
NOT CMAKE_EXECUTABLE_RPATH_LINK_CXX_FLAG
)
message
(
WARNING
"OPENCV_EXTRA_RPATH_LINK_PATH may not work properly because CMAKE_EXECUTABLE_RPATH_LINK_CXX_FLAG is not defined (not supported)"
)
endif
()
endif
()
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