Skip to content

Commit 44048d4

Browse files
authored
Add gau2grid as dependency in GauXC config file (#169)
1 parent 62fea07 commit 44048d4

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ set( GAUXC_HAS_CUDA FALSE CACHE BOOL "" FORCE )
5959
set( GAUXC_HAS_HIP FALSE CACHE BOOL "" FORCE )
6060
set( GAUXC_HAS_MPI FALSE CACHE BOOL "" FORCE )
6161
set( 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 )
6363
set( GAUXC_HAS_HDF5 FALSE CACHE BOOL "" FORCE )
6464
set( GAUXC_HAS_MAGMA FALSE CACHE BOOL "" FORCE )
6565
set( GAUXC_HAS_NCCL FALSE CACHE BOOL "" FORCE )

cmake/gauxc-config.cmake.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ if(GAUXC_HAS_OPENMP)
3030
find_dependency( OpenMP )
3131
endif()
3232

33+
if( GAUXC_HAS_GAU2GRID STREQUAL "External" )
34+
find_dependency( gau2grid )
35+
endif()
36+
3337
if( GAUXC_HAS_HOST )
3438
if(GAUXC_BLAS_IS_LP64)
3539
set( _blas_components lp64 )

cmake/gauxc-gau2grid.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
4348
endif() # If enabled

0 commit comments

Comments
 (0)