Skip to content
Snippets Groups Projects
Commit d1423324 authored by deuce's avatar deuce
Browse files

Make ssh.c conditional on the existance of cryptlib.h

parent 0e88c472
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@ set(SOURCE
ooii_cmenus.c
ooii_bmenus.c
ooii_sounds.c
ssh.c
modem.c
../comio/comio.c
conn_pty.c
......@@ -45,6 +44,11 @@ else()
list(APPEND SOURCE ../comio/comio_nix.c)
endif()
CHECK_INCLUDE_FILES(cryptlib.h HAS_CRYPTLIB_H)
if(HAS_CRYPTLIB_H)
list(APPEND SOURCE ssh.c)
endif()
add_executable(syncterm ${SOURCE})
if(NOT ${PARENT_DIRECTORY})
......@@ -85,7 +89,6 @@ if(WIN32)
include_directories(syncterm PRIVATE ../../3rdp/win32.release/cryptlib/include)
endif()
target_link_libraries(syncterm m)
CHECK_INCLUDE_FILES(cryptlib.h HAS_CRYPTLIB_H)
if(NOT HAS_CRYPTLIB_H)
target_compile_definitions(syncterm PRIVATE WITHOUT_CRYPTLIB)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment