Skip to content

Commit

Permalink
Enhanced visual studio "Enhanced Instruction Set" detection openMVG#846
Browse files Browse the repository at this point in the history
- updated OptimizeForArchitecture (it can now support now Kaby-lake,
Skylake processors)
  • Loading branch information
pmoulon committed Jul 6, 2017
1 parent 1605f98 commit 4c711c6
Show file tree
Hide file tree
Showing 2 changed files with 314 additions and 233 deletions.
10 changes: 2 additions & 8 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,9 @@ include(OptimizeForArchitecture)
AutodetectHostArchitecture()
OptimizeForArchitecture()

if (SSE2_FOUND)
if (MSVC AND NOT ${CMAKE_CL_64})
register_definitions(/arch:SSE2)
endif (MSVC AND NOT ${CMAKE_CL_64})
register_definitions(-DOPENMVG_USE_SSE)
endif ()
if (AVX2_FOUND AND NOT MSVC)
if (USE_AVX2)
register_definitions(-DOPENMVG_USE_AVX2)
endif()
endif ()
if (UNIX AND NOT OpenMVG_BUILD_COVERAGE)
set(CMAKE_C_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
Expand Down
Loading

0 comments on commit 4c711c6

Please sign in to comment.