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
223790e6
Commit
223790e6
authored
Jan 28, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16423 from alalek:issue_16321
parents
5429b1f5
ffaf15d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
CMakeLists.txt
3rdparty/carotene/hal/CMakeLists.txt
+0
-16
CMakeLists.txt
CMakeLists.txt
+4
-0
No files found.
3rdparty/carotene/hal/CMakeLists.txt
View file @
223790e6
...
...
@@ -58,22 +58,6 @@ function(compile_carotene)
endif
()
add_subdirectory
(
"
${
CAROTENE_DIR
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/carotene"
)
if
(
ARM OR AARCH64
)
if
(
CMAKE_BUILD_TYPE
)
set
(
CMAKE_TRY_COMPILE_CONFIGURATION
${
CMAKE_BUILD_TYPE
}
)
endif
()
check_cxx_compiler_flag
(
"-mfpu=neon"
CXX_HAS_MFPU_NEON
)
check_c_compiler_flag
(
"-mfpu=neon"
C_HAS_MFPU_NEON
)
if
(
${
CXX_HAS_MFPU_NEON
}
AND
${
C_HAS_MFPU_NEON
}
AND NOT
"
${
CMAKE_CXX_FLAGS
}
"
MATCHES
"-mfpu=neon[^ ]*"
)
get_target_property
(
old_flags
"carotene_objs"
COMPILE_FLAGS
)
if
(
old_flags
)
set_target_properties
(
"carotene_objs"
PROPERTIES COMPILE_FLAGS
"
${
old_flags
}
-mfpu=neon"
)
else
()
set_target_properties
(
"carotene_objs"
PROPERTIES COMPILE_FLAGS
"-mfpu=neon"
)
endif
()
endif
()
endif
()
endfunction
()
compile_carotene
()
...
...
CMakeLists.txt
View file @
223790e6
...
...
@@ -797,9 +797,13 @@ endif()
foreach
(
hal
${
OpenCV_HAL
}
)
if
(
hal STREQUAL
"carotene"
)
if
(
";
${
CPU_BASELINE_FINAL
}
;"
MATCHES
";NEON;"
)
add_subdirectory
(
3rdparty/carotene/hal
)
ocv_hal_register
(
CAROTENE_HAL_LIBRARIES CAROTENE_HAL_HEADERS CAROTENE_HAL_INCLUDE_DIRS
)
list
(
APPEND OpenCV_USED_HAL
"carotene (ver
${
CAROTENE_HAL_VERSION
}
)"
)
else
()
message
(
STATUS
"Carotene: NEON is not available, disabling carotene..."
)
endif
()
elseif
(
hal STREQUAL
"openvx"
)
add_subdirectory
(
3rdparty/openvx
)
ocv_hal_register
(
OPENVX_HAL_LIBRARIES OPENVX_HAL_HEADERS OPENVX_HAL_INCLUDE_DIRS
)
...
...
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