Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
a2e90af5
Commit
a2e90af5
authored
7 years ago
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added USE_NEON_INSTRUCTIONS cmake option.
parent
52972a73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
set_compiler_specific_options.cmake
dlib/cmake_utils/set_compiler_specific_options.cmake
+7
-0
No files found.
dlib/cmake_utils/set_compiler_specific_options.cmake
View file @
a2e90af5
...
...
@@ -93,6 +93,13 @@ elseif (MSVC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # else if using Visu
list
(
APPEND active_preprocessor_switches
"-DDLIB_HAVE_SSE2"
)
endif
()
elseif
((
";
${
gcc_like_compilers
}
;"
MATCHES
";
${
CMAKE_CXX_COMPILER_ID
}
;"
)
AND
(
"
${
CMAKE_SYSTEM_PROCESSOR
}
"
MATCHES
"^arm"
))
option
(
USE_NEON_INSTRUCTIONS
"Compile your program with ARM-NEON instructions"
OFF
)
if
(
USE_NEON_INSTRUCTIONS
)
list
(
APPEND active_compile_opts -mfpu=neon
)
message
(
STATUS
"Enabling ARM-NEON instructions"
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
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