Skip to content

Commit

Permalink
CMake: Fix build with NO_THREADS=ON
Browse files Browse the repository at this point in the history
Even if NO_THREADS is set to ON, we do want to compile lock.c inside the
library, since it will provide the symbols, just with dummy
implementations.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Jul 23, 2021
1 parent 1e9e164 commit 7b64435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ elseif(NEED_LIBXML2)
endif()

option(NO_THREADS "Disable multi-threading support" OFF)
if (NEED_THREADS AND NOT NO_THREADS)
if (NOT WIN32)
if (NEED_THREADS)
if (NOT NO_THREADS AND NOT WIN32)
find_library(PTHREAD_LIBRARIES pthread)

if (NOT PTHREAD_LIBRARIES)
Expand Down

0 comments on commit 7b64435

Please sign in to comment.