Skip to content

Commit

Permalink
Add comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensBuechner committed Oct 19, 2023
1 parent a5f3415 commit 8b89bb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/search/cmake/FindCplex.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ set(IMPORTED_CONFIGURATIONS "Debug" "Release")
set(HINT_PATHS ${cplex_DIR} $ENV{cplex_DIR})

if(WIN32)
# On Windows we have to declare the library as SHARED to correctly
# communicate the location of the dll and impllib files.
add_library(cplex::cplex IMPORTED SHARED)
else()
# On Linux, the CPLEX installer does not provide dynamic libraries in all
# tested environments. If they are absent, we fall back to static ones
# further down, hence we mark the type unknown here.
add_library(cplex::cplex IMPORTED UNKNOWN)
endif()
set_target_properties(cplex::cplex PROPERTIES
Expand Down

0 comments on commit 8b89bb6

Please sign in to comment.