cmake: Fix the build on Windows.

(cherry picked from commit a738507ad2)
This commit is contained in:
Andreas Schneider
2014-05-27 15:41:55 +02:00
parent 22aa60d506
commit 2d6862ddb9

View File

@@ -53,6 +53,7 @@ include_directories(
${LIBSSH_THREADS_PRIVATE_INCLUDE_DIRS}
)
if (libssh_threads_SRCS)
add_library(${LIBSSH_THREADS_SHARED_LIBRARY} SHARED ${libssh_threads_SRCS})
target_link_libraries(${LIBSSH_THREADS_SHARED_LIBRARY} ${LIBSSH_THREADS_LINK_LIBRARIES})
@@ -123,3 +124,4 @@ if (WITH_STATIC_LIB)
libraries
)
endif (WITH_STATIC_LIB)
endif (libssh_threads_SRCS)