]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Do not check for the geometry component in FindBOOST.cmake 6973/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 25 Jul 2018 12:42:25 +0000 (07:42 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 25 Jul 2018 12:42:25 +0000 (07:42 -0500)
Boost.Geometry is a header-only component of Boost. It is
unconditionally installed.

CMake does not support to configure with the "geometry" component
because it cannot pick up a corresponding library (is true at least for
versions 3.9, 3.10, 3.11, 3.12).

Thus, remove the geometry component from the find(Boost ...) call.

Closes #6969

cmake/modules/FindBOOST.cmake

index 0f1ba9e280c006766fe08a75dfff794fa1538e8d..423dcd047ee81d12e1a4ebbde9cb96b9a7708258 100644 (file)
@@ -52,11 +52,11 @@ ENDIF()
 LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 IF(DEAL_II_WITH_ZLIB)
   FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS
-    iostreams serialization system thread geometry
+    iostreams serialization system thread
     )
 ELSE()
   FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS
-    serialization system thread geometry
+    serialization system thread
     )
 ENDIF()
 LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
@@ -70,9 +70,9 @@ IF(NOT Boost_FOUND AND Boost_USE_STATIC_LIBS)
   # temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
   LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
   IF(DEAL_II_WITH_ZLIB)
-    FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS iostreams serialization system thread geometry)
+    FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS iostreams serialization system thread)
   ELSE()
-    FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS serialization system thread geometry)
+    FIND_PACKAGE(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS serialization system thread)
   ENDIF()
   LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 ENDIF()
@@ -104,7 +104,6 @@ DEAL_II_PACKAGE_HANDLE(BOOST
     Boost_SERIALIZATION_LIBRARY_DEBUG Boost_SERIALIZATION_LIBRARY_RELEASE
     Boost_SYSTEM_LIBRARY_DEBUG Boost_SYSTEM_LIBRARY_RELEASE
     Boost_THREAD_LIBRARY_DEBUG Boost_THREAD_LIBRARY_RELEASE
-    Boost_GEOMETRY_LIBRARY_DEBUG Boost_GEOMETRY_LIBRARY_RELEASE
     Boost_LIBRARY_DIR_DEBUG Boost_LIBRARY_DIR_RELEASE
     _Boost_COMPONENTS_SEARCHED _Boost_INCLUDE_DIR_LAST
     _Boost_LIBRARY_DIR_LAST _Boost_USE_MULTITHREADED_LAST

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.