]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Some small changes for DEAL_II_WITH_64BIT_INDICES
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Jun 2013 14:49:59 +0000 (14:49 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Jun 2013 14:49:59 +0000 (14:49 +0000)
 - Bugfix: Prevent DEAL_II_FORCE_AUTODETECTION from unsetting
   DEAL_II_WITH_64BIT_INDICES

 - Also document DEAL_II_WITH_64BIT_INDICES in
   doc/development/Config.sample

 - Do not mark DEAL_II_WITH_64BIT_INDICES as advanced as it already shows
   up in the summary and detailes logs.

git-svn-id: https://svn.dealii.org/trunk@29755 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_cached_variables.cmake
deal.II/doc/development/Config.sample

index e38c00f14b93ded7b7a99f9fb4af460ceccc03f4..4213865644c132abe6d0a3b8f40449071f2035de 100644 (file)
@@ -162,6 +162,17 @@ SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH "ON" CACHE BOOL
   )
 MARK_AS_ADVANCED(CMAKE_INSTALL_RPATH_USE_LINK_PATH)
 
+#
+# Define the variable that defines whether we should use 32- or 64-bit
+# global DoF indices.
+#
+OPTION(DEAL_II_WITH_64BIT_INDICES
+  "If set to ON, then use 64-bit data types to represent global degree of freedom indices. The default is to OFF. You only want to set this to ON if you will solve problems with more than 2^31 (approximately 2 billion) unknowns. If set to ON, you also need to ensure that both Trilinos and/or PETSc support 64-bit indices."
+  OFF
+  )
+
+
+
 #
 # Tell the user very prominently, that we're doing things differently w.r.t
 # CMAKE_(C|CXX)_FLAGS_(DEBUG|RELEASE)
@@ -238,17 +249,6 @@ FOREACH(_flag ${DEAL_II_USED_FLAGS})
 ENDFOREACH()
 
 
-#
-# Define the variable that defines whether we should use 32- or 64-bit
-# global DoF indices.
-#
-OPTION(DEAL_II_WITH_64BIT_INDICES
-  "If set to ON, then use 64-bit data types to represent global degree of freedom indices. The default is to OFF. You only want to set this to ON if you will solve problems with more than 2^31 (approximately 2 billion) unknowns. If set to ON, you also need to ensure that both Trilinos and/or PETSc support 64-bit indices."
-  OFF
-  )
-MARK_AS_ADVANCED(DEAL_II_WITH_64BIT_INDICES)
-
-
 #
 # Finally, read in CFLAGS, CXXFLAGS and LDFLAGS from environment and
 # prepend them to the saved variables:
@@ -293,7 +293,9 @@ FOREACH(_var ${_res})
   # If DEAL_II_FORCE_AUTODETECTION is set undefine all feature toggles
   # DEAL_II_WITH_* prior to configure:
   #
-  IF(DEAL_II_FORCE_AUTODETECTION AND _var MATCHES "^DEAL_II_WITH_")
+  IF(DEAL_II_FORCE_AUTODETECTION AND _var MATCHES "^DEAL_II_WITH_"
+     # Exclude FEATURES that do not represent external libraries:
+     AND NOT _var MATCHES "^DEAL_II_WITH_64BIT_INDICES" )
     UNSET(${_var} CACHE)
   ENDIF()
 ENDFOREACH()
index 528eb299e88b10785a61c942802bee43255c2156..393634f3378ad7de6b3d2fc4fefbafeec036b5ca 100644 (file)
 #   "Set the rpath of the library to the external link pathes on installation"
 #   )
 #
+# SET(DEAL_II_WITH_64BIT_INDICES "OFF" CACHE BOOL
+#   "If set to ON, then use 64-bit data types to represent global degree of freedom indices. The default is to OFF. You only want to set this to ON if you will solve problems with more than 2^31 (approximately 2 billion) unknowns. If set to ON, you also need to ensure that both Trilinos and/or PETSc support 64-bit indices."
+#   )
+#
+#
 
 
 ###########################################################################

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.