Commit 76b89b21 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

FindGurobi: silence "deprecated-copy" warning on GCC/Clang when building GurobiCXX

parent ab9edd27
Pipeline #18965 passed with stage
in 6 seconds
......@@ -105,6 +105,12 @@ if(TARGET Gurobi::GurobiC AND GUROBI_CXX_SRC AND NOT TARGET Gurobi::GurobiCXX)
add_library(GurobiCXX STATIC EXCLUDE_FROM_ALL ${GUROBI_CXX_SRC})
add_library(Gurobi::GurobiCXX ALIAS GurobiCXX)
target_compile_options(GurobiCXX
PRIVATE
$<$<CXX_COMPILER_ID:GNU>:-Wno-deprecated-copy>
$<$<CXX_COMPILER_ID:Clang>:-Wno-deprecated-copy>
)
if(MSVC)
target_compile_definitions(GurobiCXX PRIVATE "WIN64")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment