From ebb09edf328d51fe889627d37de9414b86126f04 Mon Sep 17 00:00:00 2001
From: John Derek Chapman <chapman@hep.phy.cam.ac.uk>
Date: Tue, 1 Nov 2016 16:25:14 +0100
Subject: [PATCH] CMakeLists.txt: Switch to pull source from git repository.
 ATLASSIM-3139. Tagging as AtlasCLHEP-00-00-12-06 (AtlasCLHEP-00-00-12-06)

	* CMakeLists.txt: Switch to pull source from git
	repository. ATLASSIM-3139
	* Tagging as AtlasCLHEP-00-00-12-06

2016-10-27  John Chapman  <John.Chapman@cern.ch>

	* CMakeLists.txt: fix typo in source url.
	* Tagging as AtlasCLHEP-00-00-12-04
	* Tagging as AtlasCLHEP-00-00-12-05

2016-10-21  John Chapman  <John.Chapman@cern.ch>

	* Test out CLHEP 2.2.0.4 without thread_local variables.
	* Tagging as AtlasCLHEP-00-00-12-03

2016-09-05 Antonio Limosani <Antonio.Limosani@cern.ch>
	* Branch to revert to old version of CLHEP see ATLASSIM-2898 in CMake build
	* Tagging as AtlasCLHEP-00-00-12-02

...
(Long ChangeLog diff - truncated)
---
 External/AtlasCLHEP/CMakeLists.txt   | 19 +++++++++++++------
 External/AtlasCLHEP/cmt/requirements | 11 ++++++++---
 2 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/External/AtlasCLHEP/CMakeLists.txt b/External/AtlasCLHEP/CMakeLists.txt
index bc4d7d09706..dcb8980afe5 100644
--- a/External/AtlasCLHEP/CMakeLists.txt
+++ b/External/AtlasCLHEP/CMakeLists.txt
@@ -1,8 +1,9 @@
-# $Id: CMakeLists.txt 741504 2016-04-20 07:44:31Z krasznaa $
+# $Id: CMakeLists.txt 781619 2016-11-01 16:24:31Z jchapman $
 #
 # Package building CLHEP as part of the offline build procedure.
 #
 
+
 # The name of the package:
 atlas_subdir( AtlasCLHEP )
 
@@ -11,9 +12,14 @@ if( ATLAS_RELEASE_MODE )
    return()
 endif()
 
-# The source to build:
-set( _source
-   http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.4.tgz )
+# Git repository for CLHEP:
+set( _repository https://gitlab.cern.ch/atlas-sw-git/CLHEP.git )
+# Git tag to build:
+set( _tag "CLHEP_2_2_0_4_atl01")
+
+## The source to build:
+#set( _source
+#     http://atlas-pmb.web.cern.ch/atlas-pmb/slc6/clhep-2.2.0.4.tgz  )
 
 # Extra options for the configuration:
 set( _extraOptions )
@@ -22,7 +28,7 @@ if( "${CMAKE_CXX_STANDARD}" GREATER 11 OR
    list( APPEND _extraOptions -DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
       -DCLHEP_BUILD_CXXSTD=ON )
 endif()
-  
+
 if( NOT "${CMAKE_BUILD_TYPE}" STREQUAL "" )
    list( APPEND _extraOptions -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} )
 endif()
@@ -35,7 +41,8 @@ atlas_cpu_cores( nCPUs )
 ExternalProject_Add( CLHEP
    PREFIX ${CMAKE_BINARY_DIR}
    INSTALL_DIR ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM}
-   URL ${_source}
+   GIT_REPOSITORY ${_repository}
+   GIT_TAG ${_tag}
    PATCH_COMMAND ${CMAKE_COMMAND} -E copy_directory
    <SOURCE_DIR>/CLHEP/ <SOURCE_DIR>
    COMMAND ${CMAKE_COMMAND} -E remove_directory <SOURCE_DIR>/CLHEP
diff --git a/External/AtlasCLHEP/cmt/requirements b/External/AtlasCLHEP/cmt/requirements
index 946259d978a..a38effaed21 100644
--- a/External/AtlasCLHEP/cmt/requirements
+++ b/External/AtlasCLHEP/cmt/requirements
@@ -5,9 +5,14 @@ author ATLAS Software Librarian <ATLAS-Software.Librarian@cern.ch>
 use ExternalPolicy ExternalPolicy-00-* External
 use CLHEP v* LCG_Interfaces
 
-macro AtlasCLHEP_native_version "$(CLHEP_native_version)"
-macro AtlasCLHEP_home           "$(CLHEP_home)"
-macro AtlasCLHEP_dir            "$(AtlasCLHEP_home)"
+#macro AtlasCLHEP_native_version "$(CLHEP_native_version)"
+#macro AtlasCLHEP_home           "$(CLHEP_home)"
+#macro AtlasCLHEP_dir            "$(AtlasCLHEP_home)"
+
+macro AtlasCLHEP_native_version "2.2.0.4"
+macro AtlasCLHEP_home           "/afs/cern.ch/sw/lcg/external/clhep/2.2.0.4/x86_64-slc6-gcc49-opt"
+macro AtlasCLHEP_dir            "/afs/cern.ch/sw/lcg/external/clhep/2.2.0.4/x86_64-slc6-gcc49-opt"
+
 
 macro_remove CLHEP_linkopts "" \
              notAsNeeded    "" \
-- 
GitLab