File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ set( GAUXC_HAS_CUDA FALSE CACHE BOOL "" FORCE )
5959set ( GAUXC_HAS_HIP FALSE CACHE BOOL "" FORCE )
6060set ( GAUXC_HAS_MPI FALSE CACHE BOOL "" FORCE )
6161set ( GAUXC_HAS_OPENMP FALSE CACHE BOOL "" FORCE )
62- set ( GAUXC_HAS_GAU2GRID FALSE CACHE BOOL "" FORCE )
62+ set ( GAUXC_HAS_GAU2GRID FALSE CACHE STRING "" FORCE )
6363set ( GAUXC_HAS_HDF5 FALSE CACHE BOOL "" FORCE )
6464set ( GAUXC_HAS_MAGMA FALSE CACHE BOOL "" FORCE )
6565set ( GAUXC_HAS_NCCL FALSE CACHE BOOL "" FORCE )
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ if(GAUXC_HAS_OPENMP)
3030 find_dependency ( OpenMP )
3131endif ()
3232
33+ if ( GAUXC_HAS_GAU2GRID STREQUAL "External" )
34+ find_dependency ( gau2grid )
35+ endif ()
36+
3337if ( GAUXC_HAS_HOST )
3438 if (GAUXC_BLAS_IS_LP64)
3539 set ( _blas_components lp64 )
Original file line number Diff line number Diff line change @@ -28,16 +28,21 @@ if( GAUXC_ENABLE_GAU2GRID )
2828 if ( NOT TARGET gau2grid::gg )
2929 message ( STATUS "Something Went Horribly Wrong With Gau2Grid discovery!" )
3030 endif ()
31-
31+
32+ set ( GAUXC_HAS_GAU2GRID External CACHE STRING "GauXC has Gau2Grid and will build bindings" FORCE )
3233 else ()
3334
3435 message ( STATUS "Building Pregenerated Gau2grid" )
3536 add_subdirectory ( ${PROJECT_SOURCE_DIR } /external/gau2grid ${PROJECT_BINARY_DIR } /external/gau2grid )
37+ set ( GAUXC_HAS_GAU2GRID Vendored CACHE STRING "GauXC has Gau2Grid and will build bindings" FORCE )
3638
3739 endif ()
3840
41+ else ()
42+ set ( GAUXC_HAS_GAU2GRID External CACHE STRING "GauXC has Gau2Grid and will build bindings" FORCE )
3943 endif () # If not discoverable
44+ else ()
45+ set ( GAUXC_HAS_GAU2GRID External CACHE STRING "GauXC has Gau2Grid and will build bindings" FORCE )
4046 endif () # If target not present
4147
42- set (GAUXC_HAS_GAU2GRID TRUE CACHE BOOL "GauXC has Gau2Grid and will build bindings" FORCE )
4348endif () # If enabled
You can’t perform that action at this time.
0 commit comments