Skip to content

Commit

Permalink
Merge pull request #85 from orbbec/main
Browse files Browse the repository at this point in the history
restore msse4.1
  • Loading branch information
zzuliys authored Aug 9, 2024
2 parents a4559ee + fcf0726 commit 6158de3
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 6158de3

Please sign in to comment.