Skip to content

Commit 76bd3b2

Browse files
committed
Fix #267 'SQLiteCpp/SQLiteCpp.h' file not found
Issue introduced by Commit a166062 Significantly improved support for external sqlite3, and generalized thread and dl libs on Unix/Linux/Mac
1 parent ffc1a3e commit 76bd3b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ install(TARGETS SQLiteCpp
252252
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
253253
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
254254
COMPONENT libraries)
255+
target_include_directories(SQLiteCpp PUBLIC
256+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
257+
$<INSTALL_INTERFACE:include/>)
255258
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT headers FILES_MATCHING REGEX ".*\\.(hpp|h)$")
256259
install(EXPORT ${PROJECT_NAME}Targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
257260

0 commit comments

Comments
 (0)