Skip to content

Commit

Permalink
cleanup cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeoli committed Oct 17, 2023
1 parent 94e6527 commit eeef215
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmake/FindCPLEX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,6 @@ if (CPLEX_FOUND)
set(CPLEX_INCLUDE_DIRS "${CPLEX_INCLUDE_DIR}")
set(CPLEX_LINK_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})

# See: https://cmake.org/cmake/help/latest/module/CheckLibraryExists.html
check_library_exists(m floor "" HAVE_LIBM)
if (HAVE_LIBM)
set(CPLEX_LINK_LIBRARIES ${CPLEX_LINK_LIBRARIES} m)
endif ()

if (UNIX)
set(CPLEX_LINK_LIBRARIES ${CPLEX_LINK_LIBRARIES} dl)
endif ()

if (NOT TARGET CPLEX::Cplex)
add_library(CPLEX::Cplex STATIC IMPORTED)
set_target_properties(
Expand Down

0 comments on commit eeef215

Please sign in to comment.