Skip to content
Snippets Groups Projects
Commit 72670bbf authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Updated toolchain.cmake to work with latest LbScripts

parent 899a3579
Branches
No related tags found
No related merge requests found
# Special wrapper to load the declared version of the heptools toolchain.
set(heptools_version 79)
# Set the version of HEPTools to use
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(default_toolchain NAMES GaudiDefaultToolchain.cmake
HINTS ${CMAKE_SOURCE_DIR}/cmake)
if(default_toolchain)
include(${default_toolchain})
else()
message(FATAL_ERROR "Cannot find GaudiDefaultToolchain.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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment