Skip to content

Commit f4de32f

Browse files
authored
cmake compile fix (#18)
1 parent e2d3f1e commit f4de32f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

cmake/configcat-config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include(CMakeFindDependencyMacro)
22
@PACKAGE_INIT@
33

4-
find_package(cpr REQUIRED)
4+
find_package(CURL REQUIRED)
55
find_package(nlohmann_json REQUIRED)
66
find_package(unofficial-hash-library REQUIRED)
77
find_package(semver REQUIRED)

samples/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ int main(int /*argc*/, char** /*argv*/) {
1010
// Use the default warning level to avoid too detailed logging in your application.
1111
auto logger = make_shared<ConsoleLogger>(LOG_LEVEL_INFO);
1212

13+
// Print the ConfigCat C++ SDK version.
14+
cout << "ConfigCat C++ SDK version: " << configcat::version << endl;
15+
1316
// Initialize the ConfigCatClient with an SDK Key.
1417
ConfigCatOptions options;
1518
options.logger = logger;

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#pragma once
22

3-
#define CONFIGCAT_VERSION "3.1.0"
3+
#define CONFIGCAT_VERSION "3.1.1"

0 commit comments

Comments
 (0)