]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Find correct FindBoost.cmake on case-insensitive fs 10380/head
authorMarcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>
Wed, 27 May 2020 04:00:18 +0000 (21:00 -0700)
committerMarcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>
Wed, 27 May 2020 04:07:28 +0000 (21:07 -0700)
contrib/python-bindings/CMakeLists.txt

index 4e04ee2bde4d906dea5667fc291e55dcccf4052f..51e72bf7c8438e22f3a63b02d5021870ce397275 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.