Skip to content

Commit

Permalink
Move the check for 32 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Matevz Morato committed Jun 3, 2024
1 parent 34c118b commit 512c7ba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ else()
set(DEPTHAI_CURL_USE_OPENSSL ON)
endif()

# Check if on 32 bit linux - default without CURL support
if(CMAKE_SIZEOF_VOID_P EQUAL 4 AND UNIX)
set(DEPTHAI_DEFAULT_CURL_SUPPORT OFF)
else()
set(DEPTHAI_DEFAULT_CURL_SUPPORT ON)
endif()

# Set type to canonicalize relative paths for user-provided toolchain
set(CMAKE_TOOLCHAIN_FILE "" CACHE FILEPATH "CMake toolchain path")

Expand Down Expand Up @@ -127,6 +120,13 @@ else()
endif()
endif()

# Check if on 32 bit linux - default without CURL support
if(CMAKE_SIZEOF_VOID_P EQUAL 4 AND UNIX)
set(DEPTHAI_DEFAULT_CURL_SUPPORT OFF)
else()
set(DEPTHAI_DEFAULT_CURL_SUPPORT ON)
endif()

option(DEPTHAI_ENABLE_CURL "Enable CURL support" ${DEPTHAI_DEFAULT_CURL_SUPPORT})
message(STATUS "CURL support: ${DEPTHAI_ENABLE_CURL}")

Expand Down

0 comments on commit 512c7ba

Please sign in to comment.