You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2020/05/19 07:42:07 UTC
[celix] 01/01: Removed FindOpenSSL in favour of cmake supplied
module.
This is an automated email from the ASF dual-hosted git repository.
abroekhuis pushed a commit to branch feature/remove_findopenssl
in repository https://gitbox.apache.org/repos/asf/celix.git
commit 0d596a085ff9ccee4e548ff274f472b2ab69da82
Author: Alexander Broekhuis <al...@luminis.eu>
AuthorDate: Tue May 19 09:41:49 2020 +0200
Removed FindOpenSSL in favour of cmake supplied module.
---
cmake/Modules/FindOpenSSL.cmake | 62 -----------------------------------------
1 file changed, 62 deletions(-)
diff --git a/cmake/Modules/FindOpenSSL.cmake b/cmake/Modules/FindOpenSSL.cmake
deleted file mode 100644
index caa1f99..0000000
--- a/cmake/Modules/FindOpenSSL.cmake
+++ /dev/null
@@ -1,62 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-
-# - Try to find OpenSSL
-# Once done this will define
-# OPENSSL_FOUND - System has OpenSSL
-# OPENSSL_INCLUDE_DIRS - The OpenSSL include directories
-# OPENSSL_LIBRARIES - The libraries needed to use OpenSSL
-# OpenSSL::lib - Imported target for OpenSSL
-
-find_path(OPENSSL_INCLUDE_DIR ssl.h crypto.h
- /usr/include/openssl
- /usr/local/include/openssl
- /usr/local/opt/openssl/include/openssl
- ${OPENSSL_DIR}/include/openssl)
-
-find_library(OPENSSL_LIBRARY NAMES ssl
- PATHS /usr/lib /usr/local/lib /usr/local/opt/openssl/lib ${OPENSSL_DIR}/lib)
-
-find_library(CRYPTO_LIBRARY NAMES crypto
- PATHS /usr/lib /usr/local/lib /usr/local/opt/openssl/lib ${OPENSSL_DIR}/lib)
-
-set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARY} ${CRYPTO_LIBRARY})
-set(OPENSSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
-
-include(FindPackageHandleStandardArgs)
-# handle the QUIETLY and REQUIRED arguments and set OPENSSL_FOUND to TRUE
-# if all listed variables are TRUE
-find_package_handle_standard_args(OpenSSL DEFAULT_MSG
- OPENSSL_LIBRARY CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-
-mark_as_advanced(OPENSSL_INCLUDE_DIR OPENSSL_LIBRARY CRYPTO_LIBRARY)
-
-if (OPENSSL_FOUND AND NOT TARGET OpenSSL::lib)
- add_library(OpenSSL::crypto SHARED IMPORTED)
- set_target_properties(OpenSSL::crypto PROPERTIES
- IMPORTED_LOCATION "${CRYPTO_LIBRARY}"
- INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}"
- )
-
- add_library(OpenSSL::lib SHARED IMPORTED)
- set_target_properties(OpenSSL::lib PROPERTIES
- IMPORTED_LOCATION "${OPENSSL_LIBRARY}"
- INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}"
- INTERFACE_LINK_LIBRARIES OpenSSL::crypto
- )
-endif ()