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