Skip to content

Commit

Permalink
Merge pull request cpp-pm#469 from pretyman/odb-enable-caching
Browse files Browse the repository at this point in the history
Enable cache on odb packages
  • Loading branch information
ruslo authored Aug 26, 2016
2 parents 6d47c23 + bcc83b5 commit 94903e3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 4 deletions.
8 changes: 7 additions & 1 deletion cmake/projects/odb-boost/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_configuration_types)
include(hunter_pick_scheme)
include(hunter_download)
Expand All @@ -21,5 +22,10 @@ hunter_add_version(

hunter_configuration_types(odb-boost CONFIGURATION_TYPES Release)
hunter_pick_scheme(DEFAULT url_sha1_odb-boost_autotools)
hunter_download(PACKAGE_NAME odb-boost)
hunter_cacheable(odb-boost)
hunter_download(PACKAGE_NAME odb-boost
PACKAGE_UNRELOCATABLE_TEXT_FILES
"lib/libodb-boost.la"
"lib/pkgconfig/libodb-boost.pc"
)

8 changes: 7 additions & 1 deletion cmake/projects/odb-mysql/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_configuration_types)
include(hunter_pick_scheme)
include(hunter_download)
Expand All @@ -21,5 +22,10 @@ hunter_add_version(

hunter_configuration_types(odb-mysql CONFIGURATION_TYPES Release)
hunter_pick_scheme(DEFAULT url_sha1_odb-mysql_autotools)
hunter_download(PACKAGE_NAME odb-mysql)
hunter_cacheable(odb-mysql)
hunter_download(PACKAGE_NAME odb-mysql
PACKAGE_UNRELOCATABLE_TEXT_FILES
"lib/libodb-mysql.la"
"lib/pkgconfig/libodb-mysql.pc"
)

8 changes: 7 additions & 1 deletion cmake/projects/odb-pgsql/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_configuration_types)
include(hunter_pick_scheme)
include(hunter_download)
Expand All @@ -21,5 +22,10 @@ hunter_add_version(

hunter_configuration_types(odb-pgsql CONFIGURATION_TYPES Release)
hunter_pick_scheme(DEFAULT url_sha1_odb-pgsql_autotools)
hunter_download(PACKAGE_NAME odb-pgsql)
hunter_cacheable(odb-pgsql)
hunter_download(PACKAGE_NAME odb-pgsql
PACKAGE_UNRELOCATABLE_TEXT_FILES
"lib/libodb-pgsql.la"
"lib/pkgconfig/libodb-pgsql.pc"
)

5 changes: 5 additions & 0 deletions cmake/projects/odb-sqlite/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_configuration_types)
include(hunter_download)
include(hunter_pick_scheme)
Expand All @@ -24,6 +25,10 @@ hunter_add_version(

hunter_configuration_types(odb-sqlite CONFIGURATION_TYPES Release)
hunter_pick_scheme(DEFAULT url_sha1_odb-sqlite_autotools)
hunter_cacheable(odb-sqlite)
hunter_download(
PACKAGE_NAME odb-sqlite
PACKAGE_UNRELOCATABLE_TEXT_FILES
"lib/libodb-sqlite.la"
"lib/pkgconfig/libodb-sqlite.pc"
)
8 changes: 7 additions & 1 deletion cmake/projects/odb/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_configuration_types)
include(hunter_download)
include(hunter_pick_scheme)
Expand All @@ -21,4 +22,9 @@ hunter_add_version(

hunter_configuration_types(odb CONFIGURATION_TYPES Release)
hunter_pick_scheme(DEFAULT url_sha1_autotools)
hunter_download(PACKAGE_NAME odb)
hunter_cacheable(odb)
hunter_download(PACKAGE_NAME odb
PACKAGE_UNRELOCATABLE_TEXT_FILES
"lib/libodb.la"
"lib/pkgconfig/libodb.pc"
)

0 comments on commit 94903e3

Please sign in to comment.