Skip to content

Commit

Permalink
Do not install some TPC files from GitHub version
Browse files Browse the repository at this point in the history
See ALIROOT-7111. Required ones will still be installed and cause an error if
they are not present.
  • Loading branch information
dberzano committed Feb 21, 2017
1 parent b62aef1 commit 686f907
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions TPC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,15 @@ install(DIRECTORY mapping DESTINATION TPC)
install(DIRECTORY macros DESTINATION TPC)

# Install root & dat files
set(ROOTFILES
AliTPCprf2dGEM.root
AliTPCprf2d.root
CovMatrixDB_PbPb6000_B0.4T.root
CovMatrixDB_pp_B0.4T.root
)

set(DATFILES
conn_iroc.dat
conn_oroc.dat
)
# The following two data files are required (ALIROOT-7111)
install(FILES AliTPCprf2dGEM.root AliTPCprf2d.root DESTINATION TPC)

if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/AliTPCprf2dGEM.root)
install(FILES ${ROOTFILES} ${DATFILES} DESTINATION TPC)
elseif(FATAL_IF_MISSING)
message(FATAL_ERROR "AliTPCprf2dGEM.root is missing")
endif()
# The following data files are optional
foreach(DATA_FILE CovMatrixDB_PbPb6000_B0.4T.root CovMatrixDB_pp_B0.4T.root conn_iroc.dat conn_oroc.dat)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${DATA_FILE})
install(FILES ${DATA_FILE} DESTINATION TPC)
elseif(FATAL_IF_MISSING)
message(FATAL_ERROR "${DATA_FILE} is missing")
endif()
endforeach()

0 comments on commit 686f907

Please sign in to comment.