From: dberzano Date: Thu, 29 Jan 2015 11:56:16 +0000 (+0100) Subject: PAR: output list of enabled PARfiles during CMake X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=9596d7e94f46aa3112971ee5417629fe936135e4;p=u%2Fmrichter%2FAliRoot.git PAR: output list of enabled PARfiles during CMake --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 06ac222781f..36fefac61c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,6 +190,9 @@ install(FILES ${PROJECT_BINARY_DIR}/version/AliRoot-config.cmake DESTINATION etc set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) set(CMAKE_NO_SYSTEM_FROM_IMPORTED TRUE) +# List of modules for which PARfiles are enabled -- use the cache as global scope and clean it +set(ALIPARFILES "" CACHE INTERNAL "ALIPARFILES" FORCE) + # AliRoot base modules add_subdirectory(STEER) add_subdirectory(RAW) @@ -276,3 +279,7 @@ if(SHUTTLE) endif(SHUTTLE) add_subdirectory(ALIROOT) + +# List modules with PARfiles +string(REPLACE ";" " " ALIPARFILES_FLAT "${ALIPARFILES}") +message(STATUS "PARfile target enabled for the following modules: ${ALIPARFILES_FLAT}") diff --git a/cmake/GenParFile.cmake b/cmake/GenParFile.cmake index b01e59209e7..ccea4d3452f 100644 --- a/cmake/GenParFile.cmake +++ b/cmake/GenParFile.cmake @@ -77,4 +77,8 @@ function(add_target_parfile PARMODULE PARSOURCES PARHEADERS PARLINKDEF PARLIBDEP # Install target install(FILES ${PARDIR}/../${PARMODULE}.par DESTINATION PARfiles OPTIONAL) + # Add this module to the list of generated PARfiles + list(APPEND ALIPARFILES ${PARMODULE}) + set(ALIPARFILES ${ALIPARFILES} CACHE INTERNAL "ALIPARFILES") + endfunction()