-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert #7443 it's almost impossible to predict if those headers are available. abseil has a mechanism to detect these headers, trust it. Since we are trying very hard to inject at build time the default C++ standard of the compiler or the one given in profile, it should be fine.
- Loading branch information
Showing
6 changed files
with
54 additions
and
34 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
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
15 changes: 15 additions & 0 deletions
15
recipes/abseil/all/patches/0004-cpp-standard-20200225.patch
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,15 @@ | ||
--- a/CMake/AbseilHelpers.cmake | ||
+++ b/CMake/AbseilHelpers.cmake | ||
@@ -204,8 +204,12 @@ function(absl_cc_library) | ||
endif() | ||
|
||
# INTERFACE libraries can't have the CXX_STANDARD property set | ||
+ if(ABSL_PROPAGATE_CXX_STD) | ||
+ target_compile_features(${_NAME} PUBLIC cxx_std_11) | ||
+ else() | ||
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD ${ABSL_CXX_STANDARD}) | ||
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) | ||
+ endif() | ||
|
||
# When being installed, we lose the absl_ prefix. We want to put it back | ||
# to have properly named lib files. This is a no-op when we are not being |
15 changes: 15 additions & 0 deletions
15
recipes/abseil/all/patches/0004-cpp-standard-20200923.patch
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,15 @@ | ||
--- a/CMake/AbseilHelpers.cmake | ||
+++ b/CMake/AbseilHelpers.cmake | ||
@@ -206,8 +206,12 @@ function(absl_cc_library) | ||
endif() | ||
|
||
# INTERFACE libraries can't have the CXX_STANDARD property set | ||
+ if(ABSL_PROPAGATE_CXX_STD) | ||
+ target_compile_features(${_NAME} PUBLIC cxx_std_11) | ||
+ else() | ||
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD ${ABSL_CXX_STANDARD}) | ||
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) | ||
+ endif() | ||
|
||
# When being installed, we lose the absl_ prefix. We want to put it back | ||
# to have properly named lib files. This is a no-op when we are not being |
15 changes: 15 additions & 0 deletions
15
recipes/abseil/all/patches/0004-cpp-standard-20210324.patch
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,15 @@ | ||
--- a/CMake/AbseilHelpers.cmake | ||
+++ b/CMake/AbseilHelpers.cmake | ||
@@ -254,8 +254,12 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n") | ||
endif() | ||
|
||
# INTERFACE libraries can't have the CXX_STANDARD property set | ||
+ if(ABSL_PROPAGATE_CXX_STD) | ||
+ target_compile_features(${_NAME} PUBLIC cxx_std_11) | ||
+ else() | ||
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD ${ABSL_CXX_STANDARD}) | ||
set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) | ||
+ endif() | ||
|
||
# When being installed, we lose the absl_ prefix. We want to put it back | ||
# to have properly named lib files. This is a no-op when we are not being |