Skip to content

Commit

Permalink
test envvariable
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev-0 committed Oct 15, 2024
1 parent 8145ff5 commit 3f8b3cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ elseif(NOT CMAKE_BUILD_TYPE)
CACHE STRING "Choose the type of build." FORCE)
endif()
message(STATUS "Build mode: ${CMAKE_BUILD_TYPE}")
message(STATUS "OPENSSL_DIR: $ENV{OPENSSL_DIR}")

# https://cmake.org/cmake/help/v3.6/module/FindOpenSSL.html
if(NOT "$ENV{OPENSSL_DIR}" STREQUAL "")
set(OPENSSL_ROOT_DIR $ENV{OPENSSL_DIR})
set(OPENSSL_INCLUDE_DIR "$ENV{OPENSSL_DIR}/include")
set(OPENSSL_LIB $ENV{OPENSSL_DIR})
message(STATUS "OPENSSL_ROOT_DIR: ${OPENSSL_ROOT_DIR}")
endif()
if(DEFINED ENV{OPENSSL_LIB})
set(OPENSSL_LIB $ENV{OPENSSL_LIB})
Expand Down

0 comments on commit 3f8b3cb

Please sign in to comment.