forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to use cmake package configuration file from boost (#154)
* Fix path in cmake config modul of boost * Remove boost config module in hunter * Increment package id * Add Boost_USE_STATIC_LIBS in examples.... * Fix boost iostream example... * Fix example, add Boost_USE_STATIC_LIBS * Add workaround in example to fix test on travis * If an older boost version is used... use BoostConfig from hunter * Try to fix windows test builds * Add FindBoost.cmake again, It is needed, even when you set CONFIG in find_package! See BoostConfig line 51 in hunter. The original FindBoost from cmake add for example in iostream regex as required dependency but this is an optional dependency .... * Fix iOS build, set install target * Split build and install target on iOS build * Enable boost debug * Use Boost::boost because example is build also with older versions * Comment out fix, needs impovement * Fix mingw/boost 1.64 test build * Fix vs builds * Cleanup boost thread test build * Fix boost system test on windows * Improve boost log test * Set Boost_USE_STATIC_LIBS when not HUNTER_BUILD_SHARED_LIBS * Get cmake args for Boost * Fix use boost static libs in windows * Introduced USE_CONFIG_FROM_BOOST * use boost config if not boost version less then 1.72 * If boost version should be 1.72 or greater * if not BOOST_BUILD_DYNAMIC_VSRUNTIME use boost static runtime * Fix some review findings * Increase PACKAGE_INTERNAL_DEPS_ID * Create boost config from boost if USE_CONFIG_FROM_BOOST is set * Use only some examples to use config from boost * Fix boost log example * Add USE_CONFIG_FROM_BOOST hint in boost doc
- Loading branch information
Showing
79 changed files
with
636 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
atomic | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
chrono | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
context | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
contract | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
fiber | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
graph | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
locale | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
log | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
math | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
mpi | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
python | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
random | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
regex | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
signals | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
system | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
test | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
thread | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
timer | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
wave | ||
PACKAGE_INTERNAL_DEPS_ID "47" | ||
PACKAGE_INTERNAL_DEPS_ID "48" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (c) 2013, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
cmake_minimum_required(VERSION 3.0) | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/hunter-packages/gate | ||
include("../common.cmake") | ||
|
||
project(download-boost) | ||
|
||
hunter_add_package(Boost COMPONENTS system chrono) | ||
find_package(Boost CONFIG REQUIRED system chrono) | ||
|
||
add_executable(foo foo.cpp) | ||
target_link_libraries( | ||
foo | ||
PUBLIC | ||
Boost::chrono | ||
Boost::system # Should be last | ||
# Boost 1.66.0, Linux, Clang with -stdlib=libstdc++: | ||
# * https://travis-ci.org/ingenue/hunter/jobs/318140468#L2651 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <boost/chrono/system_clocks.hpp> | ||
|
||
int main() { | ||
boost::chrono::system_clock::now(); | ||
return 0; | ||
} |
Oops, something went wrong.