diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a1345915..f0221349f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,6 @@ SET(OpenMVS_USE_CUDA ON CACHE BOOL "Enable CUDA library") SET(OpenMVS_USE_FAST_FLOAT2INT ON CACHE BOOL "Use an optimized code to convert real numbers to int") SET(OpenMVS_USE_FAST_INVSQRT OFF CACHE BOOL "Use an optimized code to compute the inverse square root (slower in fact on modern compilers)") SET(OpenMVS_USE_FAST_CBRT ON CACHE BOOL "Use an optimized code to compute the cubic root") -SET(OpenMVS_USE_SSE ON CACHE BOOL "Enable SSE optimizations") SET(OpenMVS_MAX_CUDA_COMPATIBILITY OFF CACHE BOOL "Build for maximum CUDA device compatibility") SET(OpenMVS_ENABLE_TESTS ON CACHE BOOL "Enable test code") @@ -51,6 +50,9 @@ ENDIF() # ${OpenMVS_BINARY_DIR}. PROJECT(OpenMVS) +cmake_policy(SET CMP0127 NEW) +cmake_dependent_option(OpenMVS_USE_SSE "Enable SSE optimizations" ON "NOT CMAKE_SYSTEM_PROCESSOR MATCHES \"^(arm|ARM|aarch64|AARCH64).\"" OFF) + SET(OpenMVS_MAJOR_VERSION 2) SET(OpenMVS_MINOR_VERSION 2) SET(OpenMVS_PATCH_VERSION 0)