]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Add comments for cmake find-module trickery 1264/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 5 Aug 2015 18:58:14 +0000 (13:58 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 5 Aug 2015 18:58:14 +0000 (13:58 -0500)
cmake/modules/FindBOOST.cmake
cmake/modules/FindBZIP2.cmake
cmake/modules/FindLAPACK.cmake
cmake/modules/FindMPI.cmake
cmake/modules/FindZLIB.cmake

index 827c5cb8cd97a2d5bd477ba775efe504219e0303..059466d7231ee57b8001c409e11d6302a54b51cf 100644 (file)
@@ -41,6 +41,7 @@ IF(NOT BUILD_SHARED_LIBS)
   SET(Boost_USE_STATIC_LIBS TRUE)
 ENDIF()
 
+# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
 LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 FIND_PACKAGE(Boost 1.48 COMPONENTS iostreams serialization system thread)
 LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
@@ -50,6 +51,8 @@ LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 #
 IF(NOT Boost_FOUND AND Boost_USE_STATIC_LIBS)
   SET(Boost_USE_STATIC_LIBS FALSE)
+
+  # temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
   LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
   FIND_PACKAGE(Boost 1.48 COMPONENTS iostreams serialization system thread)
   LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
index e8f0cf5c5a229e4b4d8260bab5a05c4887d9ac30..fa8cee79383afda5ac1ed70b5f082483267995d4 100644 (file)
@@ -29,6 +29,7 @@
 # original find module and do a dummy call to DEAL_II_PACKAGE_HANDLE:
 #
 
+# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
 LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 FIND_PACKAGE(BZip2)
 LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
index 97642f1fe353fdb6352865494d597e464630b2d8..001e5ce9489b0abb709ca00539f98c367fa4a935 100644 (file)
@@ -1,6 +1,6 @@
 ## ---------------------------------------------------------------------
 ##
-## Copyright (C) 2013 - 2014 by the deal.II authors
+## Copyright (C) 2013 - 2015 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -37,6 +37,8 @@ SET_IF_EMPTY(BLAS_DIR "$ENV{BLAS_DIR}")
 SET_IF_EMPTY(LAPACK_DIR "$ENV{LAPACK_DIR}")
 
 SET(_cmake_prefix_path_backup "${CMAKE_PREFIX_PATH}")
+
+# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
 LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 
 SET(CMAKE_PREFIX_PATH ${BLAS_DIR} ${LAPACK_DIR} ${_cmake_prefix_path_backup})
index f37820d5825c6663a8d1a4a23c321ca95ee89a6c..cbdf0e08b8e1745f403d6d54fd3edeb1cd86aca1 100644 (file)
@@ -1,6 +1,6 @@
 ## ---------------------------------------------------------------------
 ##
-## Copyright (C) 2012 - 2014 by the deal.II authors
+## Copyright (C) 2012 - 2015 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -62,6 +62,8 @@ ENDIF()
 #
 # Call the system FindMPI.cmake module:
 #
+
+# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
 LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 FIND_PACKAGE(MPI)
 
index 0ae272ffcae6c0973d7cfae2e7fd77407c019ff7..7c239f525b47de716617b8e40e3e373eaf69dc8e 100644 (file)
 SET(ZLIB_DIR "" CACHE PATH "An optional hint to a ZLIB installation")
 SET_IF_EMPTY(ZLIB_DIR "$ENV{ZLIB_DIR}")
 
-#
-# Houston, we have a problem: CMake ships its own FindZLIB.cmake module.
-# Unfortunately we want to call DEAL_II_PACKAGE_HANDLE. Therefore, use the
-# original find module and do a dummy call to DEAL_II_PACKAGE_HANDLE:
-#
-
 IF(NOT "${ZLIB_DIR}" STREQUAL "")
   SET(ZLIB_ROOT ${ZLIB_DIR})
 ENDIF()
+# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
 LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 FIND_PACKAGE(ZLIB)
 LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)

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.