Skip to content

Commit

Permalink
Merge pull request #82 from wavefunction91/issue_75/enable_c_on_disco…
Browse files Browse the repository at this point in the history
…very

Make sure `C` is enabled on discovery
  • Loading branch information
David Williams-Young authored Nov 2, 2023
2 parents abb2974 + 3141809 commit a777fa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cmake/gauxc-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ set( GAUXC_ENABLE_GAU2GRID @GAUXC_ENABLE_GAU2GRID@ )
set( GAUXC_HAS_HDF5 @GAUXC_HAS_HDF5@ )
set( GAUXC_BLAS_IS_LP64 @GAUXC_BLAS_IS_LP64@ )

# Make sure C / CXX are enabled (former for BLAS discovery)
enable_language(C)
enable_language(CXX)


if( GAUXC_ENABLE_HOST )
if(GAUXC_BLAS_IS_LP64)
Expand All @@ -32,9 +36,6 @@ if( GAUXC_ENABLE_HOST )
endif()
find_dependency( BLAS COMPONENTS "${_blas_components}")
unset( _blas_components )
#if( GAUXC_ENABLE_GAU2GRID )
# find_dependency( gau2grid )
#endif()
endif()

if( GAUXC_ENABLE_CUDA )
Expand Down
2 changes: 1 addition & 1 deletion tests/cmake/discovery/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# See LICENSE.txt for details
#
cmake_minimum_required( VERSION 3.18 FATAL_ERROR )
project( gauxc_cmake_discovery LANGUAGES C CXX )
project( gauxc_cmake_discovery LANGUAGES CXX )

find_package( gauxc REQUIRED )
add_executable( gauxc_link_tester gauxc_link_tester.cxx )
Expand Down

0 comments on commit a777fa2

Please sign in to comment.