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
a87756e9
Commit
a87756e9
authored
Jul 22, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bumped minimal CMake version to 2.8.7.
parent
a495bbb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
22 deletions
+5
-22
CMakeLists.txt
CMakeLists.txt
+4
-22
OpenCVMinDepVersions.cmake
cmake/OpenCVMinDepVersions.cmake
+1
-0
No files found.
CMakeLists.txt
View file @
a87756e9
...
...
@@ -4,22 +4,14 @@
# From the off-tree build directory, invoke:
# $ cmake <PATH_TO_OPENCV_ROOT>
#
#
# - OCT-2008: Initial version <joseluisblancoc@gmail.com>
#
# ----------------------------------------------------------------------------
include
(
cmake/OpenCVMinDepVersions.cmake
)
set
(
CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true
)
# --------------------------------------------------------------
# Indicate CMake 2.7 and above that we don't want to mix relative
# and absolute paths in linker lib lists.
# Run "cmake --help-policy CMP0003" for more information.
# --------------------------------------------------------------
if
(
COMMAND cmake_policy
)
cmake_policy
(
SET CMP0003 NEW
)
if
(
CMAKE_GENERATOR MATCHES Xcode AND XCODE_VERSION VERSION_GREATER 4.3
)
cmake_minimum_required
(
VERSION 2.8.8 FATAL_ERROR
)
else
()
cmake_minimum_required
(
VERSION
"
${
MIN_VER_CMAKE
}
"
FATAL_ERROR
)
endif
()
# Following block can broke build in case of cross-compilng
...
...
@@ -43,16 +35,6 @@ else(NOT CMAKE_TOOLCHAIN_FILE)
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_BINARY_DIR
}
/install"
CACHE PATH
"Installation Directory"
)
endif
(
NOT CMAKE_TOOLCHAIN_FILE
)
# --------------------------------------------------------------
# Top level OpenCV project
# --------------------------------------------------------------
if
(
CMAKE_GENERATOR MATCHES Xcode AND XCODE_VERSION VERSION_GREATER 4.3
)
cmake_minimum_required
(
VERSION 2.8.8
)
elseif
(
IOS
)
cmake_minimum_required
(
VERSION 2.8.0
)
else
()
cmake_minimum_required
(
VERSION 2.6.3
)
endif
()
# must go before the project command
set
(
CMAKE_CONFIGURATION_TYPES
"Debug;Release"
CACHE STRING
"Configs"
FORCE
)
...
...
cmake/OpenCVMinDepVersions.cmake
View file @
a87756e9
set
(
MIN_VER_CMAKE 2.8.7
)
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