openwsman: avoid search of curl and pthreads on windows
Avoid search of curl and pthreads on Windows as these
libraries are not used in the Windows build
@@ -251,6 +251,7 @@ ENDIF ( NOT SWIG_EXECUTABLE )
# curl
+IF(UNIX)
INCLUDE(FindCURL)
IF ( NOT CURL_FOUND)
MESSAGE( FATAL_ERROR " curl not found" )
@@ -263,6 +264,7 @@ ELSE ( NOT CURL_FOUND)
ENDIF(result LESS 0)
ENDIF(CURL_VERSION_STRING)
ENDIF( NOT CURL_FOUND)
+ENDIF(UNIX)
# xml2
@@ -275,12 +277,14 @@ ENDIF( NOT LIBXML2_FOUND)
# pthreads
+IF(UNIX)
INCLUDE(FindThreads)
IF( NOT CMAKE_USE_PTHREADS_INIT )
MESSAGE( FATAL_ERROR " openwsman needs pthread" )
ELSE( NOT CMAKE_USE_PTHREADS_INIT )
SET(USE_PTHREAD TRUE)
ENDIF( NOT CMAKE_USE_PTHREADS_INIT )
+ENDIF(UNIX)
# dl
