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
864ec5ef
Commit
864ec5ef
authored
Dec 23, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IPPICV: don't use full paths in dependencies
parent
d9f159a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
OpenCVFindIPP.cmake
cmake/OpenCVFindIPP.cmake
+10
-12
No files found.
cmake/OpenCVFindIPP.cmake
View file @
864ec5ef
...
...
@@ -132,24 +132,22 @@ macro(ipp_detect_version)
endif
()
if
(
EXISTS
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
)
if
(
BUILD_WITH_DYNAMIC_IPP AND NOT HAVE_IPP_ICV_ONLY
)
add_library
(
${
IPP_PREFIX
}${
name
}
STATIC IMPORTED
)
# When using dynamic libraries from standalone IPP it is your responsibility to install those on the target system
list
(
APPEND IPP_LIBRARIES
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
)
else
()
add_library
(
${
IPP_PREFIX
}${
name
}
SHARED IMPORTED
)
endif
()
set_target_properties
(
${
IPP_PREFIX
}${
name
}
PROPERTIES
IMPORTED_LINK_INTERFACE_LIBRARIES
""
IMPORTED_LOCATION
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
)
list
(
APPEND IPP_LIBRARIES
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
)
# CMake doesn't support "install(TARGETS ${IPP_PREFIX}${name} " command with imported targets
# When using dynamic libraries from standalone IPP it is your responsibility to install those on the target system
if
(
NOT BUILD_WITH_DYNAMIC_IPP
)
add_library
(
ipp
${
name
}
STATIC IMPORTED
)
set_target_properties
(
ipp
${
name
}
PROPERTIES
IMPORTED_LINK_INTERFACE_LIBRARIES
""
IMPORTED_LOCATION
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
)
list
(
APPEND IPP_LIBRARIES ipp
${
name
}
)
# CMake doesn't support "install(TARGETS ${IPP_PREFIX}${name} " command with imported targets
install
(
FILES
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT main
)
string
(
TOUPPER
${
name
}
uname
)
set
(
IPP
${
uname
}
_INSTALL_PATH
"
${
CMAKE_INSTALL_PREFIX
}
/
${
OPENCV_3P_LIB_INSTALL_PATH
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
"
CACHE INTERNAL
""
FORCE
)
set
(
IPP
${
uname
}
_LOCATION_PATH
"
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
"
CACHE INTERNAL
""
FORCE
)
endif
()
endif
()
else
()
message
(
STATUS
"Can't find IPP library:
${
name
}
at
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
"
)
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