Commit 4e6e0b94 authored by jclamber's avatar jclamber

improve FindSQLITE3.cmake

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@186 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent 259e3bfe
......@@ -20,12 +20,12 @@ SET(SQLITE3_LIB_PATH "")
SET(SQLITE3_H_PATH "")
SET(SQLITE3_LIB "")
find_file(SQLITE3_H NAMES "sqlite3.h" PATH /usr/local/include)
find_file(SQLITE3_H NAMES "sqlite3.h" PATH /usr/include /usr/local/include)
IF (SQLITE3_H)
get_filename_component(SQLITE3_H_PATH ${SQLITE3_H} PATH)
MESSAGE(STATUS "Found sqlite3.h:" ${SQLITE3_H})
MESSAGE(STATUS "Found sqlite3.h path:" ${SQLITE3_H_PATH})
find_library(SQLITE3 NAMES sqlite3 PATH /usr/local/lib)
find_library(SQLITE3 NAMES sqlite3 PATH /usr/lib64 /usr/lib /usr/local/lib)
IF (SQLITE3)
SET(SQLITE3_FOUND TRUE)
SET(DNOSQLITE3 "") # SQLITE3 exist
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment