Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 16, 2024
1 parent 205391b commit 434b669
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions find-external/Ipopt/FindIpopt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 434b669

Please sign in to comment.