mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 15:17:49 +08:00
3434e5cbab
* Update promise-cpp to 1.0.3 * Update CI baseline * Fix portfile * Update git-tree hash * Update to version 2.1.0 * Update CI baseline and git-tree hash * Add usage * Update git-tree hash * Update to promise-cpp 2.1.2 * Update git-tree hash Co-authored-by: chausner <chausner@users.noreply.github.com>
9 lines
393 B
Plaintext
9 lines
393 B
Plaintext
The package promise-cpp is header only and can be used from CMake via:
|
|
|
|
find_path(PROMISE_CPP_INCLUDE_DIRS "promise-cpp/promise.hpp")
|
|
target_include_directories(main PRIVATE ${PROMISE_CPP_INCLUDE_DIRS})
|
|
|
|
Make sure to define the pre-processor macro PROMISE_HEADONLY before including "promise-cpp/promise.hpp":
|
|
|
|
#define PROMISE_HEADONLY
|
|
#include "promise-cpp/promise.hpp" |