From: Marcus Calhoun-Lopez Date: Wed, 27 May 2020 04:00:18 +0000 (-0700) Subject: Find correct FindBoost.cmake on case-insensitive fs X-Git-Tag: v9.3.0-rc1~1543^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86ee135c5b86b9c52fc1a5c918d09755f9932397;p=dealii.git Find correct FindBoost.cmake on case-insensitive fs --- 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