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

Use the existance of cryptlib.h to control SSL compiling.

parent 0154c07d
Branches
Tags
No related merge requests found
......@@ -2,6 +2,8 @@ project (SyncTERM C)
cmake_minimum_required(VERSION 2.8.11)
INCLUDE (CheckIncludeFiles)
set(SOURCE
uifc32.c
uifcx.c
......@@ -79,7 +81,14 @@ target_include_directories(syncterm PRIVATE ../uifc)
target_include_directories(syncterm PRIVATE ../sbbs3)
target_include_directories(syncterm PRIVATE ../comio)
target_include_directories(syncterm PRIVATE ../smblib)
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()
if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
target_link_libraries(syncterm util)
......@@ -91,5 +100,4 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_libraries(syncterm util)
endif()
install(TARGETS syncterm DESTINATION bin)
......@@ -4,7 +4,7 @@
#define _ST_CRYPT_H_
#ifndef WITHOUT_CRYPTLIB
#include"cryptlib.h"
#include <cryptlib.h>
#if CRYPTLIB_VERSION < 3400
#define CRYPT_ATTRIBUTE_ERRORMESSAGE CRYPT_ATTRIBUTE_INT_ERRORMESSAGE
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment