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
90f8906e
Commit
90f8906e
authored
Oct 25, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Oct 25, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1690 from SpecLad:cmake-2.8.12
parents
55ede740
76b904b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
CMakeLists.txt
CMakeLists.txt
+4
-9
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+3
-2
android.toolchain.cmake
platforms/android/android.toolchain.cmake
+1
-1
No files found.
CMakeLists.txt
View file @
90f8906e
...
@@ -11,15 +11,6 @@
...
@@ -11,15 +11,6 @@
set
(
CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true
)
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
)
endif
()
# Following block can broke build in case of cross-compilng
# Following block can broke build in case of cross-compilng
# 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
...
@@ -48,6 +39,10 @@ else()
...
@@ -48,6 +39,10 @@ else()
cmake_minimum_required
(
VERSION 2.6.3
)
cmake_minimum_required
(
VERSION 2.6.3
)
endif
()
endif
()
if
(
POLICY CMP0022
)
cmake_policy
(
SET CMP0022 OLD
)
endif
()
# must go before the project command
# must go before the project command
set
(
CMAKE_CONFIGURATION_TYPES
"Debug;Release"
CACHE STRING
"Configs"
FORCE
)
set
(
CMAKE_CONFIGURATION_TYPES
"Debug;Release"
CACHE STRING
"Configs"
FORCE
)
if
(
DEFINED CMAKE_BUILD_TYPE AND CMAKE_VERSION VERSION_GREATER
"2.8"
)
if
(
DEFINED CMAKE_BUILD_TYPE AND CMAKE_VERSION VERSION_GREATER
"2.8"
)
...
...
cmake/OpenCVModule.cmake
View file @
90f8906e
...
@@ -535,9 +535,10 @@ macro(ocv_create_module)
...
@@ -535,9 +535,10 @@ macro(ocv_create_module)
if
(
NOT
"
${
ARGN
}
"
STREQUAL
"SKIP_LINK"
)
if
(
NOT
"
${
ARGN
}
"
STREQUAL
"SKIP_LINK"
)
target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
ARGN
}
)
target_link_libraries
(
${
the_module
}
LINK_INTERFACE_LIBRARIES
${
OPENCV_MODULE_
${
the_module
}
_DEPS
}
)
target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
ARGN
}
)
if
(
HAVE_CUDA
)
if
(
HAVE_CUDA
)
target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
target_link_libraries
(
${
the_module
}
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
endif
()
endif
()
endif
()
endif
()
...
...
platforms/android/android.toolchain.cmake
View file @
90f8906e
...
@@ -715,7 +715,7 @@ __INIT_VARIABLE( ANDROID_ABI OBSOLETE_ARM_TARGET OBSOLETE_ARM_TARGETS VALUES ${A
...
@@ -715,7 +715,7 @@ __INIT_VARIABLE( ANDROID_ABI OBSOLETE_ARM_TARGET OBSOLETE_ARM_TARGETS VALUES ${A
# verify that target ABI is supported
# verify that target ABI is supported
list
(
FIND ANDROID_SUPPORTED_ABIS
"
${
ANDROID_ABI
}
"
__androidAbiIdx
)
list
(
FIND ANDROID_SUPPORTED_ABIS
"
${
ANDROID_ABI
}
"
__androidAbiIdx
)
if
(
__androidAbiIdx EQUAL -1
)
if
(
__androidAbiIdx EQUAL -1
)
string
(
REPLACE
";"
"
\"
,
\"
"
,
PRINTABLE_ANDROID_SUPPORTED_ABIS
"
${
ANDROID_SUPPORTED_ABIS
}
"
)
string
(
REPLACE
";"
"
\"
,
\"
"
PRINTABLE_ANDROID_SUPPORTED_ABIS
"
${
ANDROID_SUPPORTED_ABIS
}
"
)
message
(
FATAL_ERROR
"Specified ANDROID_ABI =
\"
${
ANDROID_ABI
}
\"
is not supported by this cmake toolchain or your NDK/toolchain.
message
(
FATAL_ERROR
"Specified ANDROID_ABI =
\"
${
ANDROID_ABI
}
\"
is not supported by this cmake toolchain or your NDK/toolchain.
Supported values are:
\"
${
PRINTABLE_ANDROID_SUPPORTED_ABIS
}
\"
Supported values are:
\"
${
PRINTABLE_ANDROID_SUPPORTED_ABIS
}
\"
"
)
"
)
...
...
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