Skip to content
Snippets Groups Projects
Commit c83a6624 authored by Gloria Corti's avatar Gloria Corti
Browse files

Merge branch 'update-toolchain' into 'master'

Updated toolchain.cmake to work with latest LbScripts

See merge request !14
parents 08c4039f ce8200e6
No related branches found
No related tags found
No related merge requests found
# Special wrapper to load the declared version of the heptools toolchain. # Set the version of HEPTools to use
set(heptools_version 79) set(heptools_version 84)
# this check is needed because the toolchain is called when checking the
# compiler (without the proper cache)
if(NOT CMAKE_SOURCE_DIR MATCHES "CMakeTmp")
find_file(toolchain_macros NAMES GaudiToolchainMacros.cmake
HINTS ${CMAKE_SOURCE_DIR}/cmake)
if(toolchain_macros)
get_filename_component(gaudi_modules_dir "${toolchain_macros}" PATH)
set(CMAKE_MODULE_PATH ${gaudi_modules_dir} ${CMAKE_MODULE_PATH})
include(GaudiToolchainMacros)
init()
include(UseHEPTools)
use_heptools(${heptools_version})
else()
message(FATAL_ERROR "Cannot find GaudiToolchainMacros.cmake")
endif()
find_file(use_heptools_module UseHEPTools.cmake
HINTS ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# this check is needed because the toolchain seem to be called a second time
# without the proper cache
if(use_heptools_module)
include(${use_heptools_module})
use_heptools(${heptools_version})
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment