Skip to content

Commit

Permalink
restore msse4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyin committed Jul 25, 2024
1 parent af3559c commit fcf0726
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/orbbec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ add_library(k4a SHARED
${CMAKE_CURRENT_BINARY_DIR}/version.rc
${TRANSFORMATION_SOURCES})

if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
if ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "amd64.*|x86_64.*|AMD64.*|i686.*|i386.*|x86.*")
target_compile_options(k4a PRIVATE "-msse4.1")
endif()
endif()

if(CACHE_OB_CONTEXT)
target_compile_definitions(k4a PRIVATE -DCACHE_OB_CONTEXT)
endif()
Expand Down

0 comments on commit fcf0726

Please sign in to comment.