Skip to content
Snippets Groups Projects
Commit 02c2af23 authored by John Derek Chapman's avatar John Derek Chapman Committed by Graeme Stewart
Browse files

CMakeLists.txt - fix typo. Tagging TwissFiles-00-00-06 (TwissFiles-00-00-06)

Former-commit-id: f1d3c809d780868579e8b82f3542af7082189fab
parent f32b55aa
No related branches found
No related tags found
No related merge requests found
# Declare the name of the package:
atlas_subdir( TwissFiles )
# If we are in release rebuilding mode, stop here:
if( ATLAS_RELEASE_MODE )
return()
endif()
# Find the ATLAS TwissFiles area:
if( NOT SITEROOT )
if( ENV{SITEROOT} )
set( SITEROOT $ENV{SITEROOT} )
else()
set( SITEROOT "/afs/cern.ch" )
endif()
endif()
if( NOT ATLAS_TWISSFILES )
if( ENV{ATLAS_TWISSFILES} )
set( ATLAS_TWISSFILES $ENV{ATLAS_TWISSFILES} )
else()
set( ATLAS_TWISSFILES "${SITEROOT}/atlas/offline/external/TwissFiles" )
endif()
endif()
# The current release data version:
set( TwissFiles_native_version "v003" )
# Set up a dependency on the separately built RPM file holding this
# data:
set_property( GLOBAL APPEND PROPERTY ATLAS_EXTERNAL_RPMS
"ATLAS_TwissFiles_${TwissFiles_native_version}" )
# Configure the environment setup module:
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/TwissFilesEnvironmentConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/TwissFilesEnvironmentConfig.cmake
@ONLY )
# And now "find" it:
set( TwissFilesEnvironment_DIR ${CMAKE_CURRENT_BINARY_DIR}
CACHE PATH "Location of TwissFilesEnvironmentConfig.cmake" )
find_package( TwissFilesEnvironment )
# This file takes care of setting up environment variables for accessing the
# Twiss files.
#
# Set the environment variable(s):
set( TWISSFILESENVIRONMENT_ENVIRONMENT
SET SITEROOT "@SITEROOT@"
SET ATLAS_TWISSFILES "@ATLAS_TWISSFILES@"
FORCESET TwissFilesPATH
"\${ATLAS_TWISSFILES}/@TwissFiles_native_version@"
APPEND DATAPATH
"\${ATLAS_TWISSFILES}/@TwissFiles_native_version@" )
# Silently declare the module found:
\ No newline at end of file
package TwissFiles
author Tom Sykora tomas.sykora@cern.ch
use ExternalPolicy ExternalPolicy-* External
macro TwissFiles_home "${SITEROOT}/atlas/offline/external/TwissFiles"
apply_pattern install_external_home
macro TwissFiles_native_version "v003"
macro TwissFiles_export_paths "$(TwissFiles_home)/${TwissFiles_native_version}"
macro TwissFiles_follow_symlinks "" PACK yes ////IF THERE ARE SYMLINKS in the _export_paths macros; not our case now
set TwissFilesPATH "$(TwissFiles_installed_home)/$(TwissFiles_native_version)"
macro TwissFiles_platform "" PACK noarch /// TO BE PLATFORM INDPENDENT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment