Skip to content

Commit

Permalink
debug: Print FindOpenSSL variables at both find_package()
Browse files Browse the repository at this point in the history
  • Loading branch information
HoundThe committed Jan 23, 2024
1 parent c50b7d9 commit f952d70
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions authenticode-config.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
if(DEFINED ENV{OPENSSL_ROOT_DIR})
message(STATUS "SSL Root Dir is $ENV{OPENSSL_ROOT_DIR}")
else(DEFINED ENV{OPENSSL_ROOT_DIR})
message(ERROR "No ssl root dir!")
endif(DEFINED ENV{OPENSSL_ROOT_DIR})

find_package(OpenSSL 3.0 REQUIRED)

if(OPENSSL_FOUND)
message(STATUS "Found ssl, include=${OPENSSL_INCLUDE_DIR} libs=${OPENSSL_SSL_LIBRARY}, vers=${OPENSSL_VERSION
}")
else(OPENSSL_FOUND)
message(FATAL "Cannot find openssl!")
endif(OPENSSL_FOUND)
include(${CMAKE_CURRENT_LIST_DIR}/authenticode-targets.cmake)

0 comments on commit f952d70

Please sign in to comment.