mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 11:10:28 +09:00
cmake: Fix the build on Windows.
(cherry picked from commit a738507ad2)
This commit is contained in:
@@ -53,6 +53,7 @@ include_directories(
|
|||||||
${LIBSSH_THREADS_PRIVATE_INCLUDE_DIRS}
|
${LIBSSH_THREADS_PRIVATE_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (libssh_threads_SRCS)
|
||||||
add_library(${LIBSSH_THREADS_SHARED_LIBRARY} SHARED ${libssh_threads_SRCS})
|
add_library(${LIBSSH_THREADS_SHARED_LIBRARY} SHARED ${libssh_threads_SRCS})
|
||||||
|
|
||||||
target_link_libraries(${LIBSSH_THREADS_SHARED_LIBRARY} ${LIBSSH_THREADS_LINK_LIBRARIES})
|
target_link_libraries(${LIBSSH_THREADS_SHARED_LIBRARY} ${LIBSSH_THREADS_LINK_LIBRARIES})
|
||||||
@@ -123,3 +124,4 @@ if (WITH_STATIC_LIB)
|
|||||||
libraries
|
libraries
|
||||||
)
|
)
|
||||||
endif (WITH_STATIC_LIB)
|
endif (WITH_STATIC_LIB)
|
||||||
|
endif (libssh_threads_SRCS)
|
||||||
|
|||||||
Reference in New Issue
Block a user