From 86ee135c5b86b9c52fc1a5c918d09755f9932397 Mon Sep 17 00:00:00 2001
From: Marcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>
Date: Tue, 26 May 2020 21:00:18 -0700
Subject: [PATCH] Find correct FindBoost.cmake on case-insensitive fs

---
 contrib/python-bindings/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/python-bindings/CMakeLists.txt b/contrib/python-bindings/CMakeLists.txt
index 4e04ee2bde..51e72bf7c8 100644
--- a/contrib/python-bindings/CMakeLists.txt
+++ b/contrib/python-bindings/CMakeLists.txt
@@ -37,11 +37,15 @@ IF(DEAL_II_COMPONENT_PYTHON_BINDINGS)
   # component manually.
   #
   UNSET(Boost_FOUND)
+  # On case-insensitive file systems, FindBOOST.cmake and FindBoost.cmake are indistinguishable.
+  # Make sure FindBoost.cmake from CMake installation is found.
+  LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
   IF(${BOOST_VERSION} VERSION_LESS 1.67)
     _FIND_PACKAGE(Boost 1.59 COMPONENTS python REQUIRED)
   ELSE()
     _FIND_PACKAGE(Boost 1.67 COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} REQUIRED)
   ENDIF()
+  LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 
   IF(NOT Boost_FOUND)
     MESSAGE(FATAL_ERROR
-- 
2.39.5