diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c8bcf1..e4cbcd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.15.0) project(LocalSearchSolver LANGUAGES CXX) +# Avoid FetchContent warning. +cmake_policy(SET CMP0135 NEW) + # Require C++14. set(CMAKE_CXX_STANDARD 14) diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 4e05343..30010b4 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -5,6 +5,6 @@ include(FetchContent) FetchContent_Declare( orproblems GIT_REPOSITORY https://github.com/fontanf/orproblems.git - GIT_TAG b9e5b32ea612fd2cf23e71de0a969b6dd56ae5d3) + GIT_TAG ba099d6bd0ac186e4113fe340789a1800fa72852) #SOURCE_DIR "${PROJECT_SOURCE_DIR}/../orproblems/") FetchContent_MakeAvailable(orproblems) diff --git a/src/examples/variables.bzl b/src/examples/variables.bzl deleted file mode 100644 index b7c4925..0000000 --- a/src/examples/variables.bzl +++ /dev/null @@ -1,17 +0,0 @@ -CPLEX_COPTS = select({ - "//examples:cplex_build": [ - "-DCPLEX_FOUND", - "-m64", - "-DIL_STD"], - "//conditions:default": []}) -GUROBI_COPTS = select({ - "//examples:gurobi_build": ["-DGUROBI_FOUND"], - "//conditions:default": []}) - -CPLEX_DEP = select({ - "//examples:cplex_build": ["@cplex//:cplex"], - "//conditions:default": []}) -GUROBI_DEP = select({ - "//examples:gurobi_build": ["@gurobi//:gurobi"], - "//conditions:default": []}) -