Skip to content

Commit

Permalink
CMake: Allow to compile IIOD without local backend
Browse files Browse the repository at this point in the history
IIOD uses the high-level API of Libiio, it can run on top of any backend
(even though it would typically use the local backend).

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Jan 23, 2024
1 parent dad2be2 commit 057f7bf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,6 @@ set(LIBIIO_VERSION ${VERSION}.g${LIBIIO_VERSION_GIT})
file(WRITE ${CMAKE_BINARY_DIR}/.version ${LIBIIO_VERSION})

if(WITH_LOCAL_BACKEND)
if (NO_THREADS)
message(SEND_ERROR "Local backend require threads.")
endif()

target_sources(iio PRIVATE local.c)

# Link with librt if present
Expand Down

0 comments on commit 057f7bf

Please sign in to comment.