Commit 5ea1da4a authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'gurobi-silence-warnings' into 'master'

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

See merge request !8
parents 270fab44 76b89b21
Pipeline #18971 failed with stage
in 7 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