From f23134d5c0318be80b1337f1465c00ff08fc07f4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Nov 2023 12:27:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- CMakeLists.txt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 984bd3c..fb71e9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,13 +104,17 @@ if (DEFINED REST_CRY_PATH) message(STATUS "Found CRY includes in ${CRY_INC_PATH}") message(STATUS "Found CRY library in ${CRY_LIB_PATH}") - add_definitions(-DUSE_CRY) - add_compile_definitions("CRY_DATA_PATH=\"${REST_CRY_PATH}/data\"") - target_link_libraries(${PROJECT_NAME} PUBLIC ${REST_CRY_PATH}/lib/libCRY.a) - include_directories(${REST_CRY_PATH}/src/) - else() - message( FATAL_ERROR "REST_CRY_PATH was defined with path ${REST_CRY_PATH}, but CRY library was not found there!\n") - endif () + add_definitions(-DUSE_CRY) + add_compile_definitions("CRY_DATA_PATH=\"${REST_CRY_PATH}/data\"") + target_link_libraries(${PROJECT_NAME} + PUBLIC ${REST_CRY_PATH}/lib/libCRY.a) + include_directories(${REST_CRY_PATH}/src/) + else () + message( + FATAL_ERROR + "REST_CRY_PATH was defined with path ${REST_CRY_PATH}, but CRY library was not found there!\n" + ) + endif () endif (DEFINED REST_CRY_PATH) target_link_libraries(${PROJECT_NAME} PUBLIC ${LIBRARY})