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 7, 2024
1 parent efd1fd5 commit 1ed9098
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions find-external/Ipopt/FindIpopt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,21 @@ else()
Ipopt
FAIL_MESSAGE DEFAULT_MSG
REQUIRED_VARS Ipopt_INCLUDE_DIRS Ipopt_LIBRARIES
VERSION_VAR Ipopt_VERSION
)
VERSION_VAR Ipopt_VERSION)

message(STATUS " Ipopt library dirs: ${Ipopt_LIBRARY_DIRS}")
message(STATUS " Ipopt include dirs: ${Ipopt_INCLUDE_DIRS}")
add_library(ipopt SHARED IMPORTED)
find_library(ipopt_lib_path NAMES ipopt PATHS ${Ipopt_LIBRARY_DIRS})
find_library(
ipopt_lib_path
NAMES ipopt
PATHS ${Ipopt_LIBRARY_DIRS})
message(STATUS " Ipopt library ipopt found at ${ipopt_lib_path}")
set_target_properties(ipopt PROPERTIES IMPORTED_LOCATION ${ipopt_lib_path})
target_include_directories(ipopt INTERFACE ${Ipopt_INCLUDE_DIRS})

if(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")

else()
target_compile_definitions(ipopt INTERFACE HAVE_CSTDDEF)
endif()
Expand Down

0 comments on commit 1ed9098

Please sign in to comment.