]> granicus.if.org Git - libevent/commitdiff
cmake/win32: do not compile regress_thread on -DEVENT__DISABLE_THREAD_SUPPORT=ON
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 8 Aug 2016 12:50:46 +0000 (15:50 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 9 Aug 2016 12:47:58 +0000 (15:47 +0300)
CMakeLists.txt

index 22160b967cb131d0f59862b21ed598217fd93158..b857d377ecb7fe64e108f6b9080c24630fcec9a8 100644 (file)
@@ -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)