From 85557c3d76c182095e05e5f8075eb35046e4b75f Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Tue, 10 Dec 2024 17:22:44 +0100 Subject: [PATCH] Revert "update" This reverts commit bd5f7c15954cb5a2aa8923ba1c072f63cdf9f74a. --- src/cpp/CMakeLists.txt | 11 ----------- src/cpp/benders/benders_by_batch/CMakeLists.txt | 10 ---------- src/cpp/benders/benders_mpi/CMakeLists.txt | 10 ---------- src/cpp/benders/outer_loop/CMakeLists.txt | 10 ---------- src/cpp/exe/benders/CMakeLists.txt | 10 ---------- src/cpp/exe/full_run/CMakeLists.txt | 10 ---------- src/cpp/exe/outer_loop/CMakeLists.txt | 10 ---------- tests/cpp/CMakeLists.txt | 10 ---------- 8 files changed, 81 deletions(-) diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt index c708eb74d..a38b54b29 100644 --- a/src/cpp/CMakeLists.txt +++ b/src/cpp/CMakeLists.txt @@ -13,17 +13,6 @@ endif() find_package(MPI REQUIRED) if(UNIX) set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) -# Check if ccache is installed and available in PATH -find_program(CCACHE_EXECUTABLE ccache) - -if (CCACHE_EXECUTABLE) - message(STATUS "Using ccache as the compiler launcher") - set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") -else () - message(WARNING "ccache not found. Proceeding without it.") -endif () - endif() # =========================================================================== # Targets diff --git a/src/cpp/benders/benders_by_batch/CMakeLists.txt b/src/cpp/benders/benders_by_batch/CMakeLists.txt index be2ebe158..ae5b63f73 100644 --- a/src/cpp/benders/benders_by_batch/CMakeLists.txt +++ b/src/cpp/benders/benders_by_batch/CMakeLists.txt @@ -14,16 +14,6 @@ message("MPI_C_LIBRARIES ${MPI_C_LIBRARIES}") if (UNIX) set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) - # Check if ccache is installed and available in PATH - find_program(CCACHE_EXECUTABLE ccache) - - if (CCACHE_EXECUTABLE) - message(STATUS "Using ccache as the compiler launcher") - set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - else () - message(WARNING "ccache not found. Proceeding without it.") - endif () endif () add_library(benders_by_batch_core) target_sources(benders_by_batch_core PRIVATE diff --git a/src/cpp/benders/benders_mpi/CMakeLists.txt b/src/cpp/benders/benders_mpi/CMakeLists.txt index bac731d48..828ac9d12 100644 --- a/src/cpp/benders/benders_mpi/CMakeLists.txt +++ b/src/cpp/benders/benders_mpi/CMakeLists.txt @@ -15,16 +15,6 @@ find_package(MPI REQUIRED) if (UNIX) set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) - # Check if ccache is installed and available in PATH - find_program(CCACHE_EXECUTABLE ccache) - - if (CCACHE_EXECUTABLE) - message(STATUS "Using ccache as the compiler launcher") - set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - else () - message(WARNING "ccache not found. Proceeding without it.") - endif () endif () add_library(benders_mpi_core) diff --git a/src/cpp/benders/outer_loop/CMakeLists.txt b/src/cpp/benders/outer_loop/CMakeLists.txt index 3da78e810..804963ec3 100644 --- a/src/cpp/benders/outer_loop/CMakeLists.txt +++ b/src/cpp/benders/outer_loop/CMakeLists.txt @@ -16,16 +16,6 @@ find_package(MPI REQUIRED) if (UNIX) set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) - # Check if ccache is installed and available in PATH - find_program(CCACHE_EXECUTABLE ccache) - - if (CCACHE_EXECUTABLE) - message(STATUS "Using ccache as the compiler launcher") - set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - else () - message(WARNING "ccache not found. Proceeding without it.") - endif () endif () add_library(outer_loop_lib) diff --git a/src/cpp/exe/benders/CMakeLists.txt b/src/cpp/exe/benders/CMakeLists.txt index d042c0707..dd8989d17 100644 --- a/src/cpp/exe/benders/CMakeLists.txt +++ b/src/cpp/exe/benders/CMakeLists.txt @@ -17,16 +17,6 @@ add_executable (benders find_package(MPI REQUIRED) if(UNIX) set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) -# Check if ccache is installed and available in PATH -find_program(CCACHE_EXECUTABLE ccache) - -if (CCACHE_EXECUTABLE) - message(STATUS "Using ccache as the compiler launcher") - set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") -else () - message(WARNING "ccache not found. Proceeding without it.") -endif () endif() #IF (WIN32) diff --git a/src/cpp/exe/full_run/CMakeLists.txt b/src/cpp/exe/full_run/CMakeLists.txt index 751cdab88..64eb11772 100644 --- a/src/cpp/exe/full_run/CMakeLists.txt +++ b/src/cpp/exe/full_run/CMakeLists.txt @@ -18,16 +18,6 @@ find_package(MPI REQUIRED) if (UNIX) set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) - # Check if ccache is installed and available in PATH - find_program(CCACHE_EXECUTABLE ccache) - - if (CCACHE_EXECUTABLE) - message(STATUS "Using ccache as the compiler launcher") - set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - else () - message(WARNING "ccache not found. Proceeding without it.") - endif () endif () target_link_libraries(full_run diff --git a/src/cpp/exe/outer_loop/CMakeLists.txt b/src/cpp/exe/outer_loop/CMakeLists.txt index b83677379..0d73f07db 100644 --- a/src/cpp/exe/outer_loop/CMakeLists.txt +++ b/src/cpp/exe/outer_loop/CMakeLists.txt @@ -17,16 +17,6 @@ add_executable(outer_loop find_package(MPI REQUIRED) if (UNIX) set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) - # Check if ccache is installed and available in PATH - find_program(CCACHE_EXECUTABLE ccache) - - if (CCACHE_EXECUTABLE) - message(STATUS "Using ccache as the compiler launcher") - set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - else () - message(WARNING "ccache not found. Proceeding without it.") - endif () endif () target_link_libraries(outer_loop diff --git a/tests/cpp/CMakeLists.txt b/tests/cpp/CMakeLists.txt index d7e0d254f..1be9c92fa 100644 --- a/tests/cpp/CMakeLists.txt +++ b/tests/cpp/CMakeLists.txt @@ -12,16 +12,6 @@ find_package(MPI REQUIRED) if(UNIX) set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER}) -# Check if ccache is installed and available in PATH -find_program(CCACHE_EXECUTABLE ccache) - -if (CCACHE_EXECUTABLE) - message(STATUS "Using ccache as the compiler launcher") - set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") - set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_EXECUTABLE}") -else () - message(WARNING "ccache not found. Proceeding without it.") -endif () endif() # =========================================================================== # Targets