From 6a6275a02e459bd6e8c1e54fc121d8885e84b5db Mon Sep 17 00:00:00 2001 From: chillenb Date: Tue, 8 Oct 2024 15:57:06 -0400 Subject: [PATCH] add header for ffsll and use builtin if available --- pyscf/lib/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyscf/lib/CMakeLists.txt b/pyscf/lib/CMakeLists.txt index 78568b27cc..6ba421c4ce 100644 --- a/pyscf/lib/CMakeLists.txt +++ b/pyscf/lib/CMakeLists.txt @@ -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() @@ -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)