From 801ed9106d63c49bd8aa0941937431a9a45c04e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 29 Jan 2020 22:28:20 +0100 Subject: [PATCH] Remove duplicate target_include_directories() where /include is now public Thanks to @emmenlau --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 741e941..a8dd112 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -240,9 +240,10 @@ endif (UNIX) target_include_directories(SQLiteCpp PRIVATE - $ $<$:${CMAKE_CURRENT_SOURCE_DIR}/sqlite3> - PUBLIC $) + PUBLIC + $ + $) # Allow the library to be installed via "make install" and found with "find_package" @@ -252,9 +253,6 @@ install(TARGETS SQLiteCpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries) -target_include_directories(SQLiteCpp PUBLIC - $ - $) install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT headers FILES_MATCHING REGEX ".*\\.(hpp|h)$") install(EXPORT ${PROJECT_NAME}Targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})