@@ -907,8 +907,11 @@ def add_include_path(dep_name):
907907 env .unset ("MACOSX_DEPLOYMENT_TARGET" )
908908
909909 # https://github.com/root-project/root/issues/18949
910- if "+cxxmodules" in self .spec and "+vc" in self .spec :
911- env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["vc" ].prefix .include )
910+ if "+cxxmodules" in self .spec :
911+ if "+vc" in self .spec :
912+ env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["vc" ].prefix .include )
913+ if "+veccore" in self .spec :
914+ env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["veccore" ].prefix .include )
912915
913916 @property
914917 def root_library_path (self ):
@@ -929,8 +932,11 @@ def setup_run_environment(self, env: EnvironmentModifications) -> None:
929932 env .prepend_path (self .root_library_path , self .prefix .lib .root )
930933
931934 # https://github.com/root-project/root/issues/18949
932- if "+cxxmodules" in self .spec and "+vc" in self .spec :
933- env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["vc" ].prefix .include )
935+ if "+cxxmodules" in self .spec :
936+ if "+vc" in self .spec :
937+ env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["vc" ].prefix .include )
938+ if "+veccore" in self .spec :
939+ env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["veccore" ].prefix .include )
934940
935941 def setup_dependent_build_environment (self , env : EnvironmentModifications , dependent_spec ):
936942 env .set ("ROOTSYS" , self .prefix )
@@ -946,8 +952,11 @@ def setup_dependent_build_environment(self, env: EnvironmentModifications, depen
946952 # library path
947953
948954 # https://github.com/root-project/root/issues/18949
949- if "+cxxmodules" in self .spec and "+vc" in self .spec :
950- env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["vc" ].prefix .include )
955+ if "+cxxmodules" in self .spec :
956+ if "+vc" in self .spec :
957+ env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["vc" ].prefix .include )
958+ if "+veccore" in self .spec :
959+ env .prepend_path ("ROOT_INCLUDE_PATH" , self .spec ["veccore" ].prefix .include )
951960
952961 def setup_dependent_run_environment (self , env : EnvironmentModifications , dependent_spec ):
953962 # Set up runtime dependencies *of downstream packages* that use ROOT
0 commit comments