Skip to content

Commit

Permalink
Merge pull request #1220 from p12tic/fix-arm-build
Browse files Browse the repository at this point in the history
[sift] Fix building on platforms without SSE2
  • Loading branch information
fabiencastan authored Sep 15, 2022
2 parents deb047f + b7184ee commit 7aa5657
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nonFree/sift/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,16 @@ set(FEATS_H
set_source_files_properties(${FEATS} ${FEATS_H} PROPERTIES LANGUAGE C)
set_source_files_properties(${FEATS_H} PROPERTIES HEADER_FILE_ONLY TRUE)

set(SIMD_DEFINITIONS "-DVL_DISABLE_AVX")
if(NOT ALICEVISION_HAVE_SSE)
set(SIMD_DEFINITIONS "${SIMD_DEFINITIONS} -DVL_DISABLE_SSE2")
endif()

alicevision_add_library(vlsift
SOURCES
${FEATS} ${FEATS_H}
PUBLIC_DEFINITIONS
-DVL_DISABLE_AVX
${SIMD_DEFINITIONS}
PRIVATE_DEFINITIONS
-DVL_BUILD_DLL
)
Expand Down

0 comments on commit 7aa5657

Please sign in to comment.