cmake work
This commit is contained in:
@@ -201,7 +201,7 @@ check_function_exists( access HAVE_ACCESS )
|
||||
check_function_exists( acosh HAVE_ACOSH )
|
||||
check_function_exists( asinh HAVE_ASINH )
|
||||
check_function_exists( atanh HAVE_ATANH )
|
||||
check_function_exists( basename <libgen.h> HAVE_BASENAME )
|
||||
check_function_exists( basename HAVE_BASENAME )
|
||||
check_function_exists( chdir HAVE_CHDIR )
|
||||
check_function_exists( clock HAVE_CLOCK )
|
||||
check_function_exists( clock_gettime HAVE_CLOCK_GETTIME )
|
||||
@@ -256,7 +256,7 @@ check_function_exists( drand48 HAVE_DRAND48 )
|
||||
check_function_exists( rand HAVE_RAND )
|
||||
check_function_exists( random HAVE_RANDOM )
|
||||
check_function_exists( readlink HAVE_READLINK )
|
||||
check_function_exists( realpath <limits.h> HAVE_REALPATH )
|
||||
check_function_exists( realpath HAVE_REALPATH )
|
||||
check_function_exists( regexec HAVE_REGEXEC )
|
||||
check_function_exists( rename HAVE_RENAME )
|
||||
check_function_exists( restartable_syscalls HAVE_RESTARTABLE_SYSCALLS )
|
||||
@@ -317,7 +317,7 @@ check_function_exists( vsnprintf HAVE_VSNPRINTF )
|
||||
check_function_exists( waitpid HAVE_WAITPID )
|
||||
check_function_exists( wcsdup HAVE_WCSDUP )
|
||||
check_function_exists( wcsnlen HAVE_WCSNLEN )
|
||||
check_function_exists( wordexp <wordexp.h> HAVE_WORDEXP )
|
||||
check_function_exists( wordexp HAVE_WORDEXP )
|
||||
check_function_exists( _bool HAVE__BOOL )
|
||||
check_function_exists( _chsize_s HAVE__CHSIZE_S )
|
||||
check_function_exists( _NSGetEnviron HAVE__NSGETENVIRON )
|
||||
|
||||
@@ -33,27 +33,40 @@ else (SQLITE3_LIBRARIES AND SQLITE3_INCLUDE_DIRS)
|
||||
NAMES
|
||||
sqlite3.h
|
||||
PATHS
|
||||
#! brew is better than default
|
||||
/usr/local/opt/sqlite/include
|
||||
${_SQLITE3_INCLUDEDIR}
|
||||
/usr/local/opt/sqlite/include
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/opt/local/include
|
||||
/sw/include
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
find_path(SQLITE3_INCLUDE_DIR
|
||||
NAMES
|
||||
sqlite3.h
|
||||
)
|
||||
|
||||
find_library(SQLITE3_LIBRARY
|
||||
NAMES
|
||||
sqlite3
|
||||
PATHS
|
||||
/usr/local/opt/sqlite/lib
|
||||
${_SQLITE3_LIBDIR}
|
||||
/usr/local/opt/sqlite
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/opt/local/lib
|
||||
/sw/lib
|
||||
)
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
if (SQLITE3_LIBRARY)
|
||||
find_library(SQLITE3_LIBRARY
|
||||
NAMES
|
||||
sqlite3
|
||||
)
|
||||
|
||||
if (SQLITE3_LIBRARY)
|
||||
set(SQLITE3_FOUND TRUE)
|
||||
endif (SQLITE3_LIBRARY)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user