diff --git a/CMakeLists.txt b/CMakeLists.txt index e394fc496d3134fb24ad51ded2f8e59e1fbf94c0..1753c49c502e20d0cb4b9598a319c01b2ba78bef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,8 +213,8 @@ endif() option(OTB_USE_DEPRECATED "Turn on the use and test of deprecated classes" OFF) mark_as_advanced(OTB_USE_DEPRECATED) -option(OTB_USE_OPENMP "Add openmp compiler and linker flags" ON) -option(OTB_USE_SSE_FLAGS "Enable SIMD optimizations (hardware dependant)." OFF) +option(OTB_USE_OPENMP "Add openmp compiler and linker flags" OFF) +option(OTB_USE_SSE_FLAGS "Enable SIMD optimizations (hardware dependant)." ON) #----------------------------------------------------------------------------- # SHOW_ALL_MSG_DEBUG option option(OTB_SHOW_ALL_MSG_DEBUG "Show all debug messages (very verbose)" OFF) diff --git a/SuperBuild/CMakeLists.txt b/SuperBuild/CMakeLists.txt index e36f7ada41f055b50f03334ec5832ee11984a301..772c5126d36c4eec0f3dac4d527c99b20f76d242 100644 --- a/SuperBuild/CMakeLists.txt +++ b/SuperBuild/CMakeLists.txt @@ -49,14 +49,9 @@ endif() option(BUILD_SHARED_LIBS "Build OTB with shared libraries." ON) option(BUILD_STATIC_LIBS "Build with static libraries." OFF) option(WITH_REMOTE_MODULES "Build with specific list of remote modules." OFF) +option(OTB_USE_OPENMP "use openmp" OFF) set(OTB_ADDITIONAL_CACHE "" CACHE STRING "Additional cmake option for OTB -DVAR:TYPE=VALUE ...") -option(OTB_USE_OPENMP "use openmp" ON) -if(WIN32) - option(OTB_USE_OPENMP "use openmp" OFF) -endif() - - if(APPLE) if(POLICY CMP0042) cmake_policy(SET CMP0042 NEW)