Skip to content
Snippets Groups Projects
Commit f5ac4bd9 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Updated some more code in the Athena project to use the new variable naming scheme.

It turns out that there were a number of other places where I forgot to update the
names of the variables to <FOO>_LCGROOT and <BAR>_ATROOT. At the same time tweaked
the "quietness" of the CMake code a bit as well.
parent 76904fc8
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!20632CMake Updates, master branch (2019.01.25.)
# The minimum required CMake version:
cmake_minimum_required( VERSION 3.2 FATAL_ERROR )
cmake_minimum_required( VERSION 3.6 )
# Read in the project's version from a file called version.txt. But let it be
# overridden from the command line if necessary.
......@@ -65,7 +66,7 @@ foreach( _external ${_externals} )
include( ${_external} )
get_filename_component( _extName ${_external} NAME_WE )
string( TOUPPER ${_extName} _extNameUpper )
message( STATUS "Taking ${_extName} from: ${${_extNameUpper}_ROOT}" )
message( STATUS "Taking ${_extName} from: ${${_extNameUpper}_LCGROOT}" )
unset( _extName )
unset( _extNameUpper )
endforeach()
......@@ -77,7 +78,7 @@ atlas_ctest_setup()
# Declare project name and version
atlas_project( Athena ${ATHENA_PROJECT_VERSION}
USE AthenaExternals 0.0.1
USE AthenaExternals ${AthenaExternals_VERSION}
PROJECT_ROOT ${CMAKE_SOURCE_DIR}/../../
FORTRAN )
......@@ -107,19 +108,19 @@ install( FILES ${CMAKE_BINARY_DIR}/env_setup_install.sh
# Configure and install the post-configuration file:
string( REPLACE "$ENV{TDAQ_RELEASE_BASE}" "\$ENV{TDAQ_RELEASE_BASE}"
TDAQ-COMMON_ROOT "${TDAQ-COMMON_ROOT}" )
TDAQ-COMMON_ATROOT "${TDAQ-COMMON_ATROOT}" )
string( REPLACE "${TDAQ-COMMON_VERSION}" "\${TDAQ-COMMON_VERSION}"
TDAQ-COMMON_ROOT "${TDAQ-COMMON_ROOT}" )
TDAQ-COMMON_ATROOT "${TDAQ-COMMON_ATROOT}" )
string( REPLACE "$ENV{TDAQ_RELEASE_BASE}" "\$ENV{TDAQ_RELEASE_BASE}"
DQM-COMMON_ROOT "${DQM-COMMON_ROOT}" )
DQM-COMMON_ATROOT "${DQM-COMMON_ATROOT}" )
string( REPLACE "${DQM-COMMON_VERSION}" "\${DQM-COMMON_VERSION}"
DQM-COMMON_ROOT "${DQM-COMMON_ROOT}" )
DQM-COMMON_ATROOT "${DQM-COMMON_ATROOT}" )
# Temporarily add tdaq dependency to Athena build:
string( REPLACE "$ENV{TDAQ_RELEASE_BASE}" "\$ENV{TDAQ_RELEASE_BASE}"
TDAQ_ROOT "${TDAQ_ROOT}" )
TDAQ_ATROOT "${TDAQ_ATROOT}" )
string( REPLACE "${TDAQ_VERSION}" "\${TDAQ_VERSION}"
TDAQ_ROOT "${TDAQ_ROOT}" )
TDAQ_ATROOT "${TDAQ_ATROOT}" )
configure_file( ${CMAKE_SOURCE_DIR}/PostConfig.cmake.in
${CMAKE_BINARY_DIR}/PostConfig.cmake @ONLY )
......
......@@ -4,7 +4,6 @@
#
# Set the versions of the TDAQ projects:
set( TDAQ_PROJECT_NAME "@TDAQ_PROJECT_NAME@" CACHE STRING
"Name of the tdaq project" )
set( TDAQ_VERSION "@TDAQ_VERSION@" CACHE STRING
......@@ -23,7 +22,11 @@ set( DQM-COMMON_ATROOT "@DQM-COMMON_ATROOT@" CACHE PATH
"The directory to pick up dqm-common from" )
# Find Gaudi:
find_package( Gaudi REQUIRED )
if( Athena_FIND_QUIETLY )
find_package( Gaudi REQUIRED QUIET )
else()
find_package( Gaudi REQUIRED )
endif()
# Load all the files from the externals/ subdirectory:
get_filename_component( _thisdir ${CMAKE_CURRENT_LIST_FILE} PATH )
......@@ -34,7 +37,7 @@ foreach( _external ${_externals} )
get_filename_component( _extName ${_external} NAME_WE )
string( TOUPPER ${_extName} _extNameUpper )
if( NOT Athena_FIND_QUIETLY )
message( STATUS "Taking ${_extName} from: ${${_extNameUpper}_ROOT}" )
message( STATUS "Taking ${_extName} from: ${${_extNameUpper}_LCGROOT}" )
endif()
unset( _extName )
unset( _extNameUpper )
......
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