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
47ae5f14
Commit
47ae5f14
authored
Feb 13, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8186 from Kronopath:patch-1
parents
156d736e
88e54ca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
CMakeLists.txt
CMakeLists.txt
+14
-12
No files found.
CMakeLists.txt
View file @
47ae5f14
...
...
@@ -25,19 +25,21 @@ endif()
# Following block can broke build in case of cross-compilng
# 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
if
(
NOT CMAKE_TOOLCHAIN_FILE
)
# it _must_ go before project(OpenCV) in order to work
if
(
WIN32
)
if
(
NOT DEFINED CMAKE_INSTALL_PREFIX
)
if
(
NOT CMAKE_TOOLCHAIN_FILE
)
# it _must_ go before project(OpenCV) in order to work
if
(
WIN32
)
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_BINARY_DIR
}
/install"
CACHE PATH
"Installation Directory"
)
else
()
set
(
CMAKE_INSTALL_PREFIX
"/usr/local"
CACHE PATH
"Installation Directory"
)
endif
()
else
(
NOT CMAKE_TOOLCHAIN_FILE
)
#Android: set output folder to ${CMAKE_BINARY_DIR}
set
(
LIBRARY_OUTPUT_PATH_ROOT
${
CMAKE_BINARY_DIR
}
CACHE PATH
"root for library output, set this to change where android libs are compiled to"
)
# any crosscompiling
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_BINARY_DIR
}
/install"
CACHE PATH
"Installation Directory"
)
else
()
set
(
CMAKE_INSTALL_PREFIX
"/usr/local"
CACHE PATH
"Installation Directory"
)
endif
()
else
(
NOT CMAKE_TOOLCHAIN_FILE
)
#Android: set output folder to ${CMAKE_BINARY_DIR}
set
(
LIBRARY_OUTPUT_PATH_ROOT
${
CMAKE_BINARY_DIR
}
CACHE PATH
"root for library output, set this to change where android libs are compiled to"
)
# any crosscompiling
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_BINARY_DIR
}
/install"
CACHE PATH
"Installation Directory"
)
endif
(
NOT CMAKE_TOOLCHAIN_FILE
)
endif
(
NOT CMAKE_TOOLCHAIN_FILE
)
endif
()
if
(
CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore
)
set
(
WINRT TRUE
)
...
...
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