Skip to content

Commit

Permalink
Merge pull request #289 from wravery/find-pegtl
Browse files Browse the repository at this point in the history
Call find_package(PEGTL) implicitly from find_package(cppgraphqlgen CONFIG)
  • Loading branch information
wravery committed May 15, 2023
2 parents 2175116 + b4c377c commit 00a6d4b
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ endfunction()

find_package(Threads MODULE REQUIRED)

find_package(pegtl 3.2.6 QUIET CONFIG)
find_package(pegtl 3.2.7 QUIET CONFIG)
if(NOT pegtl_FOUND)
# If a compatible version of PEGTL is not already installed, build and install it from the submodule directory.
set(PEGTL_BUILD_TESTS OFF CACHE BOOL "Disable PEGTL tests")
Expand Down
1 change: 1 addition & 0 deletions cmake/cppgraphqlgen-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ The following functions are defined to help with code generation and build targe

include(CMakeFindDependencyMacro)
find_package(Threads REQUIRED)
find_package(pegtl 3.2.7 CONFIG REQUIRED)
include("${CMAKE_CURRENT_LIST_DIR}/cppgraphqlgen-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/cppgraphqlgen-functions.cmake")
2 changes: 1 addition & 1 deletion cmake/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.5.2
4.5.3
4 changes: 2 additions & 2 deletions include/graphqlservice/internal/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

namespace graphql::internal {

constexpr std::string_view FullVersion { "4.5.2" };
constexpr std::string_view FullVersion { "4.5.3" };

constexpr size_t MajorVersion = 4;
constexpr size_t MinorVersion = 5;
constexpr size_t PatchVersion = 2;
constexpr size_t PatchVersion = 3;

} // namespace graphql::internal

Expand Down
4 changes: 2 additions & 2 deletions res/ClientGen.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <winver.h>

#define GRAPHQL_RC_VERSION 4,5,2,0
#define GRAPHQL_RC_VERSION_STR "4.5.2"
#define GRAPHQL_RC_VERSION 4,5,3,0
#define GRAPHQL_RC_VERSION_STR "4.5.3"

#ifndef DEBUG
#define VER_DEBUG 0
Expand Down
4 changes: 2 additions & 2 deletions res/SchemaGen.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <winver.h>

#define GRAPHQL_RC_VERSION 4,5,2,0
#define GRAPHQL_RC_VERSION_STR "4.5.2"
#define GRAPHQL_RC_VERSION 4,5,3,0
#define GRAPHQL_RC_VERSION_STR "4.5.3"

#ifndef DEBUG
#define VER_DEBUG 0
Expand Down
4 changes: 2 additions & 2 deletions res/graphqlclient_version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <winver.h>

#define GRAPHQL_RC_VERSION 4,5,2,0
#define GRAPHQL_RC_VERSION_STR "4.5.2"
#define GRAPHQL_RC_VERSION 4,5,3,0
#define GRAPHQL_RC_VERSION_STR "4.5.3"

#ifndef DEBUG
#define VER_DEBUG 0
Expand Down
4 changes: 2 additions & 2 deletions res/graphqljson_version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <winver.h>

#define GRAPHQL_RC_VERSION 4,5,2,0
#define GRAPHQL_RC_VERSION_STR "4.5.2"
#define GRAPHQL_RC_VERSION 4,5,3,0
#define GRAPHQL_RC_VERSION_STR "4.5.3"

#ifndef DEBUG
#define VER_DEBUG 0
Expand Down
4 changes: 2 additions & 2 deletions res/graphqlpeg_version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <winver.h>

#define GRAPHQL_RC_VERSION 4,5,2,0
#define GRAPHQL_RC_VERSION_STR "4.5.2"
#define GRAPHQL_RC_VERSION 4,5,3,0
#define GRAPHQL_RC_VERSION_STR "4.5.3"

#ifndef DEBUG
#define VER_DEBUG 0
Expand Down
4 changes: 2 additions & 2 deletions res/graphqlresponse_version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <winver.h>

#define GRAPHQL_RC_VERSION 4,5,2,0
#define GRAPHQL_RC_VERSION_STR "4.5.2"
#define GRAPHQL_RC_VERSION 4,5,3,0
#define GRAPHQL_RC_VERSION_STR "4.5.3"

#ifndef DEBUG
#define VER_DEBUG 0
Expand Down
4 changes: 2 additions & 2 deletions res/graphqlservice_version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include <winver.h>

#define GRAPHQL_RC_VERSION 4,5,2,0
#define GRAPHQL_RC_VERSION_STR "4.5.2"
#define GRAPHQL_RC_VERSION 4,5,3,0
#define GRAPHQL_RC_VERSION_STR "4.5.3"

#ifndef DEBUG
#define VER_DEBUG 0
Expand Down

0 comments on commit 00a6d4b

Please sign in to comment.