Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 2d72952

Browse files
committed
Added module linking
1 parent a2d6caf commit 2d72952

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright (C) 2007-2011 LuaDist.
2-
# Created by Peter Kapec
2+
# Created by Félix A.A.
33
# Redistribution and use of this file is allowed according to the terms of the MIT license.
44
# For details see the COPYRIGHT file distributed with LuaDist.
55
# Please note that the package source code is licensed under its own license.
@@ -8,16 +8,12 @@ project ( lua-openssl C )
88
cmake_minimum_required ( VERSION 2.8 )
99
include ( dist.cmake )
1010

11-
find_package(OpenSSL )
12-
13-
if(NOT OPENSSL_FOUND)
14-
message("cannot find openssl.")
15-
endif()
11+
find_package(OpenSSL REQUIRED)
1612

1713
# lua-openssl modules
18-
install_lua_module( lua_openssl src/auxiliar.c src/bio.c src/cipher.c src/crl.c src/csr.c
14+
install_lua_module( openssl src/auxiliar.c src/bio.c src/cipher.c src/crl.c src/csr.c
1915
src/digest.c src/misc.c src/openssl.c src/pkcs12.c src/pkcs7.c
20-
src/pkey.c src/x509.c src/conf.c src/ots.c )
16+
src/pkey.c src/x509.c src/conf.c src/ots.c LINK ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY})
2117

2218

2319
# Install lua-openssl Documentation

0 commit comments

Comments
 (0)