Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
a2e90af5
Commit
a2e90af5
authored
Dec 08, 2017
by
Davis King
Browse files
Added USE_NEON_INSTRUCTIONS cmake option.
parent
52972a73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dlib/cmake_utils/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
...
@@ -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"
)
list
(
APPEND active_preprocessor_switches
"-DDLIB_HAVE_SSE2"
)
endif
()
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
()
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