Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-03-01 21:15:29 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-03-01 21:43:54 +0300
commitf39143bc2ed4eb33bb85a3d923cb457384141bf8 (patch)
treefba90399a3c9fe57ed00ce048ba63f45ea65838a /build_files/cmake/macros.cmake
parent77bc5510a90bbfcc7adaed6a0e4c4768cb236239 (diff)
CMake: reduce Neon related output on Intel platforms
* Only try to find sse2neon if Neon detected * Only run Neon support test once
Diffstat (limited to 'build_files/cmake/macros.cmake')
-rw-r--r--build_files/cmake/macros.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index b8f92a10761..cad1d86b75a 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -682,11 +682,13 @@ macro(TEST_SSE_SUPPORT
endmacro()
macro(TEST_NEON_SUPPORT)
- include(CheckCXXSourceCompiles)
- check_cxx_source_compiles(
- "#include <arm_neon.h>
- int main() {return vaddvq_s32(vdupq_n_s32(1));}"
- SUPPORT_NEON_BUILD)
+ if(NOT DEFINED SUPPORT_NEON_BUILD)
+ include(CheckCXXSourceCompiles)
+ check_cxx_source_compiles(
+ "#include <arm_neon.h>
+ int main() {return vaddvq_s32(vdupq_n_s32(1));}"
+ SUPPORT_NEON_BUILD)
+ endif()
endmacro()
# Only print message if running CMake first time