From 1f11058586b2c6ceea019182d0322b1e5c264989 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 20 Jul 2015 18:09:06 +0200
Subject: [PATCH] Use s3 location for eigen download.

BitBucket now uses https which is not supported by CMake external
project.
---
 Applications/ApplicationsLib/CMakeLists.txt | 4 ++++
 scripts/cmake/ThirdPartyLibVersions.cmake   | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Applications/ApplicationsLib/CMakeLists.txt b/Applications/ApplicationsLib/CMakeLists.txt
index 61b83c038d9..38bedca85bd 100644
--- a/Applications/ApplicationsLib/CMakeLists.txt
+++ b/Applications/ApplicationsLib/CMakeLists.txt
@@ -16,3 +16,7 @@ ADD_CATALYST_DEPENDENCY(ApplicationsLib)
 if(OGS_BUILD_GUI)
 	target_link_libraries(ApplicationsLib PUBLIC Qt4::QtCore)
 endif()
+
+if(TARGET Eigen)
+	add_dependencies(ApplicationsLib Eigen)
+endif()
diff --git a/scripts/cmake/ThirdPartyLibVersions.cmake b/scripts/cmake/ThirdPartyLibVersions.cmake
index 477f7e73f39..877977d22fc 100644
--- a/scripts/cmake/ThirdPartyLibVersions.cmake
+++ b/scripts/cmake/ThirdPartyLibVersions.cmake
@@ -1,7 +1,7 @@
 set(OGS_BOOST_URL "http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2/download")
 set(OGS_BOOST_MD5 "b8839650e61e9c1c0a89f371dd475546")
 
-set(OGS_EIGEN_URL "http://bitbucket.org/eigen/eigen/get/3.2.5.tar.gz")
+set(OGS_EIGEN_URL "http://opengeosys.s3.amazonaws.com/ogs6-lib-sources/eigen-3.2.5.tar.gz")
 set(OGS_EIGEN_MD5 "8cc513ac6ec687117acadddfcacf551b")
 
 set(OGS_VTK_VERSION 6.1.0)
-- 
GitLab