Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!8FindGurobi: silence "deprecated-copy" warning on GCC/Clang when building GurobiCXX
Pipeline #18971 failed
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment