]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
In case of an in-source build set CMAKE_INSTALL_PREFIX to CMAKE_SOURCE_DIR if the...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 31 Jan 2013 13:01:37 +0000 (13:01 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 31 Jan 2013 13:01:37 +0000 (13:01 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28200 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_boost.cmake
deal.II/cmake/setup_cached_variables.cmake

index 1408b5f47ee26b05610b463a4ac18f618038c116..c26b03a09398b2e3858d489e6b7dd8d2c296f243 100644 (file)
@@ -1,6 +1,6 @@
 #####
 ##
-## Copyright (C) 2012 by the deal.II authors
+## Copyright (C) 2012, 2013 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
index b59235e883593a25801f162471c8572dd537a739..30bb6c724598f0619c64bf4cebcaf216aeb5f181 100644 (file)
@@ -1,6 +1,6 @@
 #####
 ##
-## Copyright (C) 2012 by the deal.II authors
+## Copyright (C) 2012, 2013 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -94,6 +94,13 @@ OPTION(DEAL_II_FORCE_AUTODETECTION
   OFF
   )
 
+IF("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
+  SET(CMAKE_INSTALL_PREFIX
+    "${CMAKE_BINARY_DIR}"
+    CACHE STRING
+    "Install path prefix, prepended onto install directories."
+    )
+ENDIF()
 
 ###########################################################################
 #                                                                         #

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.