| 1 |
include(CMakeFindDependencyMacro) |
| 2 |
|
| 3 |
find_dependency(crypto) |
| 4 |
|
| 5 |
# Allow static or shared lib to be used. |
| 6 |
# If both are installed, choose based on BUILD_SHARED_LIBS. |
| 7 |
if (BUILD_SHARED_LIBS) |
| 8 |
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/shared/ssl-targets.cmake") |
| 9 |
include(${CMAKE_CURRENT_LIST_DIR}/shared/ssl-targets.cmake) |
| 10 |
else() |
| 11 |
include(${CMAKE_CURRENT_LIST_DIR}/static/ssl-targets.cmake) |
| 12 |
endif() |
| 13 |
else() |
| 14 |
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/static/ssl-targets.cmake") |
| 15 |
include(${CMAKE_CURRENT_LIST_DIR}/static/ssl-targets.cmake) |
| 16 |
else() |
| 17 |
include(${CMAKE_CURRENT_LIST_DIR}/shared/ssl-targets.cmake) |
| 18 |
endif() |
| 19 |
endif() |