Find Botan: Reformat CMake code
+# ~~~
# Try to find the Botan 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 BOTAN_FOUND)
include (FindPkgConfig)
@@ -18,14 +19,13 @@ if (NOT BOTAN_FOUND)
endif ()
if (BOTAN_FOUND)
+
# try to compile and link a minimal sample program against libbotan
try_compile (HAS_BOTAN_4SURE
"${CMAKE_BINARY_DIR}"
"${PROJECT_SOURCE_DIR}/src/plugins/crypto/compile_botan.cpp"
- CMAKE_FLAGS
- -DINCLUDE_DIRECTORIES:STRING=${BOTAN_INCLUDE_DIRS}
- -DLINK_LIBRARIES:PATH=${BOTAN_LIBRARIES}
- )
+ CMAKE_FLAGS -DINCLUDE_DIRECTORIES:STRING=${BOTAN_INCLUDE_DIRS}
+ -DLINK_LIBRARIES:PATH=${BOTAN_LIBRARIES})
if (NOT HAS_BOTAN_4SURE)
message (STATUS "Botan compile/linker test failed")
