diff --git a/dev/prologue.jl b/dev/prologue.jl index f0ce91d..35cdde8 100644 --- a/dev/prologue.jl +++ b/dev/prologue.jl @@ -1,7 +1,10 @@ -using t8code_jll: t8code_jll -export t8code_jll - using ..T8code: _PREFERENCE_LIBT8, _PREFERENCE_LIBP4EST, _PREFERENCE_LIBSC + +@static if _PREFERENCE_LIBT8 == "t8code_jll" || _PREFERENCE_LIBP4EST == "t8code_jll" || + _PREFERENCE_LIBSC == "t8code_jll" + using t8code_jll: t8code_jll +end + using MPIPreferences: MPIPreferences @static if _PREFERENCE_LIBT8 == "t8code_jll" && MPIPreferences.binary == "system" diff --git a/src/Libt8.jl b/src/Libt8.jl index 48bfbd5..41abf34 100644 --- a/src/Libt8.jl +++ b/src/Libt8.jl @@ -9,7 +9,8 @@ end using ..T8code: _PREFERENCE_LIBT8, _PREFERENCE_LIBP4EST, _PREFERENCE_LIBSC -@static if _PREFERENCE_LIBT8 == "t8code_jll" || _PREFERENCE_LIBP4EST == "t8code_jll" || _PREFERENCE_LIBSC == "t8code_jll" +@static if _PREFERENCE_LIBT8 == "t8code_jll" || _PREFERENCE_LIBP4EST == "t8code_jll" || + _PREFERENCE_LIBSC == "t8code_jll" using t8code_jll: t8code_jll end