Find `cppcms`: Reformat CMake code
+# ~~~
# Script created on basis of
# https://theogit.fmi.uni-stuttgart.de/bahrdtdl/oscar/blob/8c6d602d044d726aa3d56138100a14f3d6f4c22a/cmake/FindCPPCMS.cmake
#
# BOOSTER_INCLUDE_DIR - Where to find booster include sub-directory.
# BOOSTER_LIBRARIES - List of libraries when using BOOSTER.
# BOOSTER_FOUND - True if BOOSTER found.
+# ~~~
if (CPPCMS_INCLUDE_DIR)
- # Already in cache, be silent.
- set (CPPCMS_FIND_QUIETLY TRUE)
+ set (CPPCMS_FIND_QUIETLY TRUE) # Already in cache, be silent.
endif (CPPCMS_INCLUDE_DIR)
find_path (CPPCMS_INCLUDE_DIR cppcms/application.h PATHS /usr/include /usr/local/include)
@@ -21,19 +22,11 @@ find_path (BOOSTER_INCLUDE_DIR booster/assert.h PATHS /usr/include /usr/local/in
find_library (CPPCMS_LIBRARY NAMES cppcms PATHS /usr/lib /usr/lib64 /usr/local/lib DOC "version 1.0 or greater is required")
find_library (BOOSTER_LIBRARY NAMES booster PATHS /usr/lib /usr/lib64 /usr/local/lib DOC "version 1.45 or greater is required")
-
-# Handle the QUIETLY and REQUIRED arguments and set CPPCMS_FOUND to
-# TRUE if all listed variables are TRUE.
+# Handle the QUIETLY and REQUIRED arguments and set CPPCMS_FOUND to TRUE if all listed variables are TRUE.
include (FindPackageHandleStandardArgs)
-find_package_handle_standard_args (
- CppCMS DEFAULT_MSG
- CPPCMS_LIBRARY CPPCMS_INCLUDE_DIR
-)
+find_package_handle_standard_args (CppCMS DEFAULT_MSG CPPCMS_LIBRARY CPPCMS_INCLUDE_DIR)
-find_package_handle_standard_args (
- BOOSTER DEFAULT_MSG
- BOOSTER_LIBRARY BOOSTER_INCLUDE_DIR
-)
+find_package_handle_standard_args (BOOSTER DEFAULT_MSG BOOSTER_LIBRARY BOOSTER_INCLUDE_DIR)
if (CPPCMS_FOUND)
set (CPPCMS_LIBRARIES ${CPPCMS_LIBRARY} ${BOOSTER_LIBRARY})
