From 434b6693d86d6093fb297ac492bd6a28d9359415 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 09:30:46 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- find-external/Ipopt/FindIpopt.cmake | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/find-external/Ipopt/FindIpopt.cmake b/find-external/Ipopt/FindIpopt.cmake index 2df536358..6ca4721c8 100644 --- a/find-external/Ipopt/FindIpopt.cmake +++ b/find-external/Ipopt/FindIpopt.cmake @@ -33,20 +33,28 @@ else() find_library( ipopt_lib_path NAMES ipopt ipopt-3 - PATHS ${Ipopt_LIBRARY_DIRS} REQUIRED) + PATHS ${Ipopt_LIBRARY_DIRS} + REQUIRED + ) message(STATUS " Ipopt library found at ${ipopt_lib_path}") set_target_properties( ipopt - PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Ipopt_INCLUDE_DIRS}" - INTERFACE_COMPILE_OPTIONS "${Ipopt_CFLAGS_OTHER}" - IMPORTED_CONFIGURATIONS "RELEASE") + PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${Ipopt_INCLUDE_DIRS}" + INTERFACE_COMPILE_OPTIONS "${Ipopt_CFLAGS_OTHER}" + IMPORTED_CONFIGURATIONS "RELEASE" + ) if(WIN32) - set_target_properties(ipopt PROPERTIES IMPORTED_IMPLIB_RELEASE - "${ipopt_lib_path}") + set_target_properties( + ipopt + PROPERTIES IMPORTED_IMPLIB_RELEASE "${ipopt_lib_path}" + ) else() - set_target_properties(ipopt PROPERTIES IMPORTED_LOCATION_RELEASE - "${ipopt_lib_path}") + set_target_properties( + ipopt + PROPERTIES IMPORTED_LOCATION_RELEASE "${ipopt_lib_path}" + ) endif() add_library(Ipopt::Ipopt ALIAS ipopt)