1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-05 20:55:46 +03:00

cmake: Don't build examples on Windows but on Unix.

This commit is contained in:
Andreas Schneider
2013-07-22 10:50:35 +02:00
parent df81a05505
commit e1576ef55a

View File

@@ -15,7 +15,7 @@ if (BSD OR SOLARIS)
find_package(Argp)
endif (BSD OR SOLARIS)
if (LINUX)
if (UNIX AND NOT WIN32)
add_executable(libssh_scp libssh_scp.c ${examples_SRCS})
target_link_libraries(libssh_scp ${LIBSSH_SHARED_LIBRARY})
@@ -37,8 +37,6 @@ if (LINUX)
target_link_libraries(samplesftp ${LIBSSH_SHARED_LIBRARY})
endif (WITH_SFTP)
endif (LINUX)
add_executable(samplessh sample.c ${examples_SRCS})
target_link_libraries(samplessh ${LIBSSH_SHARED_LIBRARY})
@@ -58,6 +56,7 @@ if (WITH_SERVER)
target_link_libraries(samplesshd-kbdint ${LIBSSH_SHARED_LIBRARY} ${ARGP_LIBRARIES})
endif (WITH_SERVER)
endif (UNIX AND NOT WIN32)
add_executable(exec exec.c ${examples_SRCS})
target_link_libraries(exec ${LIBSSH_SHARED_LIBRARY})