Skip to content

Commit

Permalink
[tutorials] hsimple: pass Vc include dir as ROOT_INCLUDE_PATH:
Browse files Browse the repository at this point in the history
While the install might have it at a findable place, the build (and
running hsimple.C during build time) might not and ROOT needs help
to find the (runtime) headers from Vc. See root-project#9594.
  • Loading branch information
Axel-Naumann authored and andresailer committed Feb 1, 2022
1 parent e30b5f2 commit ec0dd3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,12 @@ file(GLOB multithreaded RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${multithreaded})
#---Loop over all tutorials and define the corresponding test---------

#---Define the primordial tutorials-----------------------------------
if(Vc_INCLUDE_DIR)
set(HSIMPLE_ROOT_INCPATH "ROOT_INCLUDE_PATH=${Vc_INCLUDE_DIR}:${ROOT_INCLUDE_PATH}")
endif()

ROOT_ADD_TEST(tutorial-hsimple COMMAND ${ROOT_root_CMD} -b -l -n -q ${CMAKE_CURRENT_SOURCE_DIR}/hsimple.C
ENVIRONMENT ${HSIMPLE_ROOT_INCPATH}
PASSRC 255 FAILREGEX "Error in" "error:" LABELS tutorial)
ROOT_ADD_TEST(tutorial-geom-geometry COMMAND ${ROOT_root_CMD} -b -l -n -q ${CMAKE_CURRENT_SOURCE_DIR}/geom/geometry.C
FAILREGEX "Error in" "error:" LABELS tutorial)
Expand Down

0 comments on commit ec0dd3b

Please sign in to comment.