Find Lib OpenSSL: Reformat CMake code
+# ~~~
# Try to find the OpenSSL library.
#
# Defines:
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-#
+# ~~~
if (NOT OPENSSL_FOUND)
include (FindPkgConfig)
@@ -18,14 +19,13 @@ if (NOT OPENSSL_FOUND)
endif ()
if (OPENSSL_FOUND)
+
# try to compile and link a minimal sample program against libcrypto
try_compile (HAS_OPENSSL_4SURE
"${CMAKE_BINARY_DIR}"
"${PROJECT_SOURCE_DIR}/src/plugins/crypto/compile_openssl.c"
- CMAKE_FLAGS
- -DINCLUDE_DIRECTORIES:STRING=${OPENSSL_INCLUDE_DIR}
- -DLINK_LIBRARIES:PATH=${OPENSSL_LIBRARIES}
- )
+ CMAKE_FLAGS -DINCLUDE_DIRECTORIES:STRING=${OPENSSL_INCLUDE_DIR}
+ -DLINK_LIBRARIES:PATH=${OPENSSL_LIBRARIES})
if (NOT HAS_OPENSSL_4SURE)
message (STATUS "OpenSSL compile/linker test failed")
