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
e3f5bbd2
Commit
e3f5bbd2
authored
Jul 08, 2016
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary check for Android API level and unused flags.
parent
627e2b15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
CMakeLists.txt
3rdparty/carotene/hal/CMakeLists.txt
+0
-25
No files found.
3rdparty/carotene/hal/CMakeLists.txt
View file @
e3f5bbd2
...
...
@@ -14,10 +14,6 @@ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64.*|AARCH64.*")
set
(
AARCH64 TRUE
)
endif
()
if
(
ANDROID AND ARM
)
set
(
WITH_TGPU ON CACHE BOOL
"Enable Tegra GPGPU optimization"
)
endif
()
set
(
TEGRA_COMPILER_FLAGS
""
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
...
...
@@ -39,23 +35,10 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif
()
endif
()
if
(
ARM OR AARCH64
)
set
(
CHECK_TEGRA_HARDWARE_DEFAULT ON
)
else
()
set
(
CHECK_TEGRA_HARDWARE_DEFAULT OFF
)
endif
()
set
(
CHECK_TEGRA_HARDWARE
${
CHECK_TEGRA_HARDWARE_DEFAULT
}
CACHE BOOL
"Verify Tegra platform before running optimized code"
)
string
(
REPLACE
";"
" "
TEGRA_COMPILER_FLAGS
"
${
TEGRA_COMPILER_FLAGS
}
"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
TEGRA_COMPILER_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
TEGRA_COMPILER_FLAGS
}
"
)
if
(
ANDROID_NATIVE_API_LEVEL LESS 9
AND
(
WITH_TGPU OR CHECK_TEGRA_HARDWARE
))
message
(
FATAL_ERROR
"GPU support and Hardware detector is not available for API levels below 9.
Please disable Tegra GPU support and hardware detection or configure project for API level 9 or above."
)
endif
()
if
(
ARMEABI_V7A
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fno-tree-vectorize"
)
...
...
@@ -63,14 +46,6 @@ if(ARMEABI_V7A)
endif
()
endif
()
if
(
CHECK_TEGRA_HARDWARE
)
add_definitions
(
-DCHECK_TEGRA_HARDWARE
)
endif
()
if
(
WITH_TGPU
)
add_definitions
(
-DHAVE_TGPU
)
endif
()
if
(
WITH_LOGS
)
add_definitions
(
-DHAVE_LOGS
)
endif
()
...
...
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