From 192d1791f655cd4f18d1ba3a3d6c0309e6bee7e7 Mon Sep 17 00:00:00 2001 From: Romain Boman <romain.boman@gmail.com> Date: Wed, 23 Mar 2022 16:25:24 +0100 Subject: [PATCH] remove unused FindXXX.cmake --- CMake/FindMPI4PY.cmake | 42 ------------------------------------------ CMake/FindNUMPY.cmake | 21 --------------------- 2 files changed, 63 deletions(-) delete mode 100644 CMake/FindMPI4PY.cmake delete mode 100644 CMake/FindNUMPY.cmake diff --git a/CMake/FindMPI4PY.cmake b/CMake/FindMPI4PY.cmake deleted file mode 100644 index 324a72e..0000000 --- a/CMake/FindMPI4PY.cmake +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 2020 University of Liège -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -if(NOT MPI4PY_INCLUDE_DIR) - execute_process(COMMAND - "${PYTHON_EXECUTABLE}" "-c" "import mpi4py; print(mpi4py.get_include())" - OUTPUT_VARIABLE MPI4PY_INCLUDE_DIR - RESULT_VARIABLE MPI4PY_COMMAND_RESULT - OUTPUT_STRIP_TRAILING_WHITESPACE) - if(MPI4PY_COMMAND_RESULT) - message("waves/CMake/FindMPI4PY: mpi4py not found") - set(MPI4PY_FOUND FALSE) - else(MPI4PY_COMMAND_RESULT) - if (MPI4PY_INCLUDE_DIR MATCHES "Traceback") - message("waves/CMake/FindMPI4PY: mpi4py matches traceback") - ## Did not successfully include MPI4PY - set(MPI4PY_FOUND FALSE) - else (MPI4PY_INCLUDE_DIR MATCHES "Traceback") - ## successful - set(MPI4PY_FOUND TRUE) - set(MPI4PY_INCLUDE_DIR ${MPI4PY_INCLUDE_DIR} CACHE STRING "mpi4py include path") - endif (MPI4PY_INCLUDE_DIR MATCHES "Traceback") - endif(MPI4PY_COMMAND_RESULT) -else(NOT MPI4PY_INCLUDE_DIR) - set(MPI4PY_FOUND TRUE) -endif(NOT MPI4PY_INCLUDE_DIR) -# ---------------------------------------------------------------------------- - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(MPI4PY DEFAULT_MSG - MPI4PY_INCLUDE_DIR) diff --git a/CMake/FindNUMPY.cmake b/CMake/FindNUMPY.cmake deleted file mode 100644 index 1196c8e..0000000 --- a/CMake/FindNUMPY.cmake +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2020 University of Liège -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -find_path(NUMPY_INCLUDE_DIR "numpy/arrayobject.h") - -# ---------------------------------------------------------------------------- - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(NUMPY DEFAULT_MSG - NUMPY_INCLUDE_DIR) -- GitLab