From 07b282a025f78d0e224a57c975a2b1addecabe68 Mon Sep 17 00:00:00 2001 From: jangmin-deepx Date: Wed, 27 Dec 2023 15:29:15 +0900 Subject: [PATCH] fix(CMakeLists.txt): Add BUILD_DEPS, change ortools's GIT_TAG main -> v9.0 for c17 support and build deps for whom doesn't have --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d3ca4c..ffffa3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(mlir-tutorial LANGUAGES CXX C) set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to") set(CMAKE_POSITION_INDEPENDENT_CODE ON) +set(BUILD_DEPS ON) find_package(MLIR REQUIRED CONFIG) @@ -28,7 +29,7 @@ include(FetchContent) FetchContent_Declare( or-tools GIT_REPOSITORY https://github.com/google/or-tools.git - GIT_TAG main + GIT_TAG v9.0 ) FetchContent_MakeAvailable(or-tools) message(STATUS "Done fetching or-tools")