]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Mar 2013 10:18:01 +0000 (10:18 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Mar 2013 10:18:01 +0000 (10:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@28879 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_1_mpi.cmake

index dd5bffa9156407c11a550d20a86016fa8e5e9cd5..cb1c2ed91dbf47257acc24d42e1b7d33a433e6d7 100644 (file)
@@ -26,8 +26,8 @@ MACRO(FEATURE_MPI_FIND_EXTERNAL var)
   # If CMAKE_CXX_COMPILER is already an MPI wrapper, use it to determine
   # the mpi implementation:
   #
-  SET(MPI_C_COMPILER ${CMAKE_C_COMPILER})
-  SET(MPI_CXX_COMPILER ${CMAKE_CXX_COMPILER})
+  SET_IF_EMPTY(MPI_C_COMPILER ${CMAKE_C_COMPILER})
+  SET_IF_EMPTY(MPI_CXX_COMPILER ${CMAKE_CXX_COMPILER})
   FIND_PACKAGE(MPI)
 
   IF(NOT MPI_CXX_FOUND)

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.