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
eec70a77
Commit
eec70a77
authored
Feb 22, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Architecture dependent library path on unix
parent
4ac407e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
6 deletions
+28
-6
CMakeLists.txt
CMakeLists.txt
+28
-6
No files found.
CMakeLists.txt
View file @
eec70a77
...
@@ -24,12 +24,6 @@ endif()
...
@@ -24,12 +24,6 @@ endif()
# but CMAKE_CROSSCOMPILING variable will be set only on project(OpenCV) command
# but CMAKE_CROSSCOMPILING variable will be set only on project(OpenCV) command
# so we will try to detect crosscompiling by presense of CMAKE_TOOLCHAIN_FILE
# so we will try to detect crosscompiling by presense of CMAKE_TOOLCHAIN_FILE
if
(
NOT CMAKE_TOOLCHAIN_FILE
)
if
(
NOT CMAKE_TOOLCHAIN_FILE
)
# Add these standard paths to the search paths for FIND_LIBRARY
# to find libraries from these locations first
if
(
UNIX
)
set
(
CMAKE_LIBRARY_PATH
${
CMAKE_LIBRARY_PATH
}
/lib /usr/lib
)
endif
()
# it _must_ go before project(OpenCV) in order to work
# it _must_ go before project(OpenCV) in order to work
if
(
WIN32
)
if
(
WIN32
)
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_BINARY_DIR
}
/install"
CACHE PATH
"Installation Directory"
)
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_BINARY_DIR
}
/install"
CACHE PATH
"Installation Directory"
)
...
@@ -79,6 +73,34 @@ include(cmake/OpenCVUtils.cmake REQUIRED)
...
@@ -79,6 +73,34 @@ include(cmake/OpenCVUtils.cmake REQUIRED)
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
include
(
cmake/OpenCVDetectCXXCompiler.cmake REQUIRED
)
include
(
cmake/OpenCVDetectCXXCompiler.cmake REQUIRED
)
# Add these standard paths to the search paths for FIND_LIBRARY
# to find libraries from these locations first
if
(
UNIX AND NOT ANDROID
)
if
(
X86_64 OR CMAKE_SIZEOF_VOID_P EQUAL 8
)
if
(
EXISTS /lib64
)
list
(
APPEND CMAKE_LIBRARY_PATH /lib64
)
else
()
list
(
APPEND CMAKE_LIBRARY_PATH /lib
)
endif
()
if
(
EXISTS /usr/lib64
)
list
(
APPEND CMAKE_LIBRARY_PATH /usr/lib64
)
else
()
list
(
APPEND CMAKE_LIBRARY_PATH /usr/lib
)
endif
()
elseif
(
X86 OR CMAKE_SIZEOF_VOID_P EQUAL 4
)
if
(
EXISTS /lib32
)
list
(
APPEND CMAKE_LIBRARY_PATH /lib32
)
else
()
list
(
APPEND CMAKE_LIBRARY_PATH /lib
)
endif
()
if
(
EXISTS /usr/lib32
)
list
(
APPEND CMAKE_LIBRARY_PATH /usr/lib32
)
else
()
list
(
APPEND CMAKE_LIBRARY_PATH /usr/lib
)
endif
()
endif
()
endif
()
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# OpenCV cmake options
# OpenCV cmake options
...
...
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