From 2bf8f39e7a022dd0335d04fa77c56df362ae257b Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Sat, 1 Jun 2013 00:38:29 +0000 Subject: [PATCH] Use an existing macro to set the default indices to 32bit. git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29712 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/configure/configure_petsc.cmake | 4 +--- deal.II/cmake/configure/configure_trilinos.cmake | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/deal.II/cmake/configure/configure_petsc.cmake b/deal.II/cmake/configure/configure_petsc.cmake index c2c3c903fb..43f0486b7a 100644 --- a/deal.II/cmake/configure/configure_petsc.cmake +++ b/deal.II/cmake/configure/configure_petsc.cmake @@ -74,9 +74,7 @@ MACRO(FEATURE_PETSC_FIND_EXTERNAL var) # indices support is enabled. # So we check for this: # - IF("${DEAL_II_WITH_64BIT_INDICES}" STREQUAL "") - SET(DEAL_II_WITH_64BIT_INDICES "OFF") - ENDIF() + SET_IF_EMPTY(DEAL_II_WITH_64BIT_INDICES "OFF") IF( (NOT PETSC_WITH_64BIT_INDICES AND DEAL_II_WITH_64BIT_INDICES) OR diff --git a/deal.II/cmake/configure/configure_trilinos.cmake b/deal.II/cmake/configure/configure_trilinos.cmake index b780b0bed5..2d898cbc84 100644 --- a/deal.II/cmake/configure/configure_trilinos.cmake +++ b/deal.II/cmake/configure/configure_trilinos.cmake @@ -119,9 +119,7 @@ MACRO(FEATURE_TRILINOS_FIND_EXTERNAL var) # Trilinos has to be configured with 32bit indices if deal.II uses unsigned long # long int. # - IF("${DEAL_II_WITH_64BIT_INDICES}" STREQUAL "") - SET(DEAL_II_WITH_64BIT_INDICES "OFF") - ENDIF() + SET_IF_EMPTY(DEAL_II_WITH_64BIT_INDICES "OFF") IF(TRILINOS_WITH_NO_32BIT_INDICES AND NOT DEAL_II_WITH_64BIT_INDICES) MESSAGE(STATUS "deal.II was configured to use 32bit global indices but " -- 2.39.5