Commit 02317e5e authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Do not install the sqlite3 headers in a sqlite3 subdirectory.

parent 7ca6fa46
...@@ -54,7 +54,7 @@ install(TARGETS sqlite3 ...@@ -54,7 +54,7 @@ install(TARGETS sqlite3
file(GLOB HEADER_FILES "*.h") file(GLOB HEADER_FILES "*.h")
install(FILES ${HEADER_FILES} install(FILES ${HEADER_FILES}
DESTINATION include/sqlite3 DESTINATION include
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
) )
......
...@@ -32,13 +32,13 @@ set(_SQLITE3_ROOT_PATHS ...@@ -32,13 +32,13 @@ set(_SQLITE3_ROOT_PATHS
) )
find_path(SQLITE3_INCLUDE_DIRS find_path(SQLITE3_INCLUDE_DIRS
NAMES sqlite3/sqlite3.h NAMES sqlite3.h
HINTS _SQLITE3_ROOT_PATHS HINTS _SQLITE3_ROOT_PATHS
PATH_SUFFIXES include PATH_SUFFIXES include
) )
if(SQLITE3_INCLUDE_DIRS) if(SQLITE3_INCLUDE_DIRS)
set(HAVE_SQLITE3_SQLITE3_H 1) set(HAVE_SQLITE3_H 1)
endif() endif()
find_library(SQLITE3_LIBRARIES find_library(SQLITE3_LIBRARIES
...@@ -50,7 +50,7 @@ find_library(SQLITE3_LIBRARIES ...@@ -50,7 +50,7 @@ find_library(SQLITE3_LIBRARIES
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Sqlite3 find_package_handle_standard_args(Sqlite3
DEFAULT_MSG DEFAULT_MSG
SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES HAVE_SQLITE3_SQLITE3_H SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES HAVE_SQLITE3_H
) )
mark_as_advanced(SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES HAVE_SQLITE3_SQLITE3_H) mark_as_advanced(SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES HAVE_SQLITE3_H)
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