Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/CMakeLists.txt 2022-11-07 15:58:01.871819791 +0100
- +++ b/CMakeLists.txt 2022-11-07 15:46:44.599849990 +0100
- @@ -42,11 +42,13 @@
- set(
- SEARCH_INC
- /usr/local/include
- + /usr/include/openssl-1.1
- /usr/include )
- set(
- SEARCH_LIB
- /usr/local/lib
- + /usr/lib/openssl-1.1
- /usr/lib )
- set(
- @@ -258,6 +260,7 @@
- find_path(
- PATH_INC_CRYPTO
- NAMES "openssl/evp.h"
- + NO_CMAKE_SYSTEM_PATH
- PATHS ${SEARCH_INC} )
- if( NOT PATH_INC_CRYPTO )
- @@ -266,11 +269,15 @@
- FATAL_ERROR
- "Unable to locate openssl crypto include files" )
- +else()
- + include_directories(BEFORE "${PATH_INC_CRYPTO}")
- +
- endif( NOT PATH_INC_CRYPTO )
- find_library(
- PATH_LIB_CRYPTO
- NAMES "crypto"
- + NO_CMAKE_SYSTEM_PATH
- PATHS ${SEARCH_LIB} )
- if( NOT PATH_LIB_CRYPTO )
- @@ -279,6 +286,10 @@
- FATAL_ERROR
- "Unable to locate openssl crypto library file" )
- +else()
- + cmake_path(REMOVE_FILENAME PATH_LIB_CRYPTO)
- + link_directories(BEFORE "${PATH_LIB_CRYPTO}")
- +
- endif( NOT PATH_LIB_CRYPTO )
- find_path(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement