summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenSSL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/OpenSSL.cmake')
-rw-r--r--indra/cmake/OpenSSL.cmake22
1 files changed, 9 insertions, 13 deletions
diff --git a/indra/cmake/OpenSSL.cmake b/indra/cmake/OpenSSL.cmake
index 80b419c36e..0aa95922ed 100644
--- a/indra/cmake/OpenSSL.cmake
+++ b/indra/cmake/OpenSSL.cmake
@@ -6,17 +6,13 @@ if( TARGET openssl::openssl )
endif()
create_target(openssl::openssl)
-if (USESYSTEMLIBS)
- include(FindOpenSSL)
-else (USESYSTEMLIBS)
- use_prebuilt_binary(openssl)
- if (WINDOWS)
- set_target_libraries(openssl::openssl libssl libcrypto)
- elseif (LINUX)
- set_target_libraries(openssl::openssl ssl crypto dl)
- else()
- set_target_libraries(openssl::openssl ssl crypto)
- endif (WINDOWS)
- set_target_include_dirs(openssl::openssl ${LIBS_PREBUILT_DIR}/include)
-endif (USESYSTEMLIBS)
+use_prebuilt_binary(openssl)
+if (WINDOWS)
+ set_target_libraries(openssl::openssl libssl libcrypto)
+elseif (LINUX)
+ set_target_libraries(openssl::openssl ssl crypto dl)
+else()
+ set_target_libraries(openssl::openssl ssl crypto)
+endif (WINDOWS)
+set_target_include_dirs(openssl::openssl ${LIBS_PREBUILT_DIR}/include)