Skip to content

Commit

Permalink
add header for ffsll and use builtin if available
Browse files Browse the repository at this point in the history
  • Loading branch information
chillenb authored and sunqm committed Oct 20, 2024
1 parent 1a75e6f commit 6a6275a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyscf/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
cmake_minimum_required (VERSION 3.5)
project (pyscf)

include(CheckSymbolExists)

if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RELWITHDEBINFO)
endif()
Expand Down Expand Up @@ -70,6 +72,7 @@ if (NOT BLAS_LIBRARIES)
#enable_language(Fortran)
find_package(BLAS)
endif()
check_symbol_exists(ffsll "strings.h" HAVE_FFS)
#check_function_exists(ffsll HAVE_FFS)

if (NOT BLAS_LIBRARIES)
Expand Down

0 comments on commit 6a6275a

Please sign in to comment.