diff options
Diffstat (limited to 'Utilities/cmxmlrpc')
-rw-r--r-- | Utilities/cmxmlrpc/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Utilities/cmxmlrpc/CMakeLists.txt b/Utilities/cmxmlrpc/CMakeLists.txt index fd2784a..893fff6 100644 --- a/Utilities/cmxmlrpc/CMakeLists.txt +++ b/Utilities/cmxmlrpc/CMakeLists.txt @@ -49,11 +49,13 @@ ENDIF(ATTR_UNUSED_VAR) SET(HAVE_LIBWWW_SSL) SET(DIRECTORY_SEPARATOR "/") -FIND_PACKAGE(Threads) SET(HAVE_PTHREADS) -IF(WIN32 OR CMAKE_USE_PTHREADS_INIT) - SET(HAVE_PTHREADS 1) -ENDIF(WIN32 OR CMAKE_USE_PTHREADS_INIT) +IF(CMAKE_BUILD_XMLRPC_WITH_THREADS) + FIND_PACKAGE(Threads) + IF(WIN32 OR CMAKE_USE_PTHREADS_INIT) + SET(HAVE_PTHREADS 1) + ENDIF(WIN32 OR CMAKE_USE_PTHREADS_INIT) +ENDIF(CMAKE_BUILD_XMLRPC_WITH_THREADS) INCLUDE_DIRECTORIES( "${CMAKE_CURRENT_SOURCE_DIR}" |