forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add REQUESTED_PYTHON_VERSION CMAKE_ARGS option for Boost
1) REQUESTED_PYTHON_VERSION added, tested for boost 1.66.0 and 1.68.0-p1 on Ubuntu 2) Example added showing how to use Hunter with Boost Python and the REQUESTED_PYTHON_VERSION option 2) Boost Package documentation updated with infor about REQUESTED_PYTHON_VERSION option
- Loading branch information
Showing
35 changed files
with
191 additions
and
32 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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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 "36" | ||
PACKAGE_INTERNAL_DEPS_ID "37" | ||
) |
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,33 @@ | ||
# Copyright (c) 2013, Ruslan Baratov | ||
# Modified work: Copyright (c) 2018, Gregory Kramida | ||
# All rights reserved. | ||
|
||
cmake_minimum_required(VERSION 3.2) | ||
option(HUNTER_BUILD_SHARED_LIBS "..." ON) | ||
|
||
# Configure: | ||
set(REQUESTED_PYTHON_VERSION 3.6.7) | ||
set(TESTING_CONFIG_OPT FILEPATH "${CMAKE_CURRENT_LIST_DIR}/config.cmake") | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/hunter-packages/gate | ||
include("../common.cmake") | ||
|
||
project(download-boost) | ||
|
||
# Requires python version 3.6.7. Change this in config.cmake if necessary. | ||
hunter_add_package(Boost COMPONENTS python) | ||
find_package(Boost CONFIG REQUIRED python36) | ||
find_package(PythonLibs ${REQUESTED_PYTHON_VERSION} EXACT REQUIRED) | ||
|
||
add_library(foo foo.cpp) | ||
target_link_libraries( | ||
foo | ||
PUBLIC | ||
Boost::python36 | ||
) | ||
target_include_directories( | ||
foo | ||
PUBLIC | ||
${PYTHON_INCLUDE_DIR} | ||
) |
Oops, something went wrong.