Skip to content

Commit 6d64df5

Browse files
committed
CMake: Bring back lost NO_THREADS definition
During the latest cmake options refactoring the NO_THREADS cmake option should have been downgraded from option to a simple definition but instead it was removed entirely. Bring it back and add NO_THREADS definition when building TINYIIOD. Signed-off-by: Dan Nechita <[email protected]>
1 parent 24ec0eb commit 6d64df5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,12 @@ else ()
626626
target_sources(iio PRIVATE lock.c)
627627
endif()
628628

629+
if (WITH_LIBTINYIIOD)
630+
set(NO_THREADS 1)
631+
else()
632+
set(NO_THREADS 0)
633+
endif()
634+
629635
if (IIOD_CLIENT OR WITH_IIOD OR WITH_LIBTINYIIOD)
630636
add_library(iiod-responder STATIC iiod-responder.c)
631637
target_include_directories(iiod-responder PRIVATE include ${CMAKE_BINARY_DIR})

0 commit comments

Comments
 (0)