Skip to content

Commit

Permalink
Fix Windows CPLEX import.
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensBuechner committed Oct 17, 2023
1 parent a063111 commit a5f3415
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/search/cmake/FindCplex.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
set(IMPORTED_CONFIGURATIONS "Debug" "Release")
set(HINT_PATHS ${cplex_DIR} $ENV{cplex_DIR})

add_library(cplex::cplex IMPORTED UNKNOWN)
if(WIN32)
add_library(cplex::cplex IMPORTED SHARED)
else()
add_library(cplex::cplex IMPORTED UNKNOWN)
endif()
set_target_properties(cplex::cplex PROPERTIES
IMPORTED_CONFIGURATIONS "${IMPORTED_CONFIGURATIONS}"
)
Expand Down

0 comments on commit a5f3415

Please sign in to comment.