From: Azat Khuzhin Date: Mon, 8 Aug 2016 12:50:46 +0000 (+0300) Subject: cmake/win32: do not compile regress_thread on -DEVENT__DISABLE_THREAD_SUPPORT=ON X-Git-Tag: release-2.1.6-beta~15^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de0c1965cad7469aee27209c3e396db4cab3cdb7;p=libevent cmake/win32: do not compile regress_thread on -DEVENT__DISABLE_THREAD_SUPPORT=ON --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 22160b96..b857d377 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -973,7 +973,9 @@ if (NOT EVENT__DISABLE_TESTS) if (WIN32) list(APPEND SRC_REGRESS test/regress_iocp.c) - list(APPEND SRC_REGRESS test/regress_thread.c) + if (NOT EVENT__DISABLE_THREAD_SUPPORT) + list(APPEND SRC_REGRESS test/regress_thread.c) + endif() endif() if (CMAKE_USE_PTHREADS_INIT)