-
Notifications
You must be signed in to change notification settings - Fork 136
Update to c++ 17 #1837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update to c++ 17 #1837
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ | |
|
|
||
| cmake_minimum_required(VERSION 3.22) | ||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
18
to
+19
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| project(firebase_rest_lib NONE) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -236,7 +236,7 @@ include_directories(${ABSEIL_CPP_ROOT}) | |
| add_definitions(-DINTERNAL_EXPERIMENTAL) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
238
to
+239
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,7 +85,7 @@ set(FIREBASE_INTEGRATION_TEST_SRCS | |
| include_directories(src) | ||
|
|
||
| # Firebase C++ SDK requires C++14. | ||
| set (CMAKE_CXX_STANDARD 14) | ||
| set (CMAKE_CXX_STANDARD 17) | ||
|
Comment on lines
87
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| set (CMAKE_CXX_STANDARD_REQUIRED YES) # Don't fall back to an earlier version. | ||
|
|
||
| # Download and unpack googletest (and googlemock) at configure time | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is outdated. With the C++ standard updated to 17, this should be updated as well for consistency.