Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sift] Fix building on platforms without SSE2 #1220

Merged
merged 1 commit into from
Sep 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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