Skip to content

Commit 7b64435

Browse files
committed
CMake: Fix build with NO_THREADS=ON
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]>
1 parent 1e9e164 commit 7b64435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ elseif(NEED_LIBXML2)
401401
endif()
402402

403403
option(NO_THREADS "Disable multi-threading support" OFF)
404-
if (NEED_THREADS AND NOT NO_THREADS)
405-
if (NOT WIN32)
404+
if (NEED_THREADS)
405+
if (NOT NO_THREADS AND NOT WIN32)
406406
find_library(PTHREAD_LIBRARIES pthread)
407407

408408
if (NOT PTHREAD_LIBRARIES)

0 commit comments

Comments
 (0)