[glog] Fix CUDA not working with NVCC compiler. (#28097)

* [glog] Fix CUDA not working with NVCC compiler.

* update version

* update patch

* version
This commit is contained in:
Frank 2022-12-03 01:14:32 +08:00 committed by GitHub
parent 1a6e66e7e4
commit eaa6e7215d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 7 deletions

View File

@ -1,5 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d145517..681b791 100644
index d145517..e8e1c90 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -669,6 +669,10 @@ if (CYGWIN OR WIN32)
@ -7,7 +7,7 @@ index d145517..681b791 100644
endif (CYGWIN OR WIN32)
+if ((MSVC) AND (MSVC_VERSION GREATER_EQUAL 1914))
+ target_compile_options(glog INTERFACE "/Zc:__cplusplus")
+ target_compile_options(glog INTERFACE "$<$<NOT:$<COMPILE_LANGUAGE:CUDA>>:/Zc:__cplusplus>")
+endif()
+
if (WITH_CUSTOM_PREFIX)

View File

@ -11,9 +11,11 @@ vcpkg_from_github(
fix_cplusplus_macro.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
unwind WITH_UNWIND
customprefix WITH_CUSTOM_PREFIX
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
unwind WITH_UNWIND
customprefix WITH_CUSTOM_PREFIX
)
file(REMOVE "${SOURCE_PATH}/glog-modules.cmake.in")

View File

@ -1,7 +1,7 @@
{
"name": "glog",
"version": "0.6.0",
"port-version": 1,
"port-version": 2,
"description": "C++ implementation of the Google logging module",
"homepage": "https://github.com/google/glog",
"license": "BSD-3-Clause",

View File

@ -2674,7 +2674,7 @@
},
"glog": {
"baseline": "0.6.0",
"port-version": 1
"port-version": 2
},
"gloo": {
"baseline": "20201203",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "cce45164ee522a505686c1794e7c228e44f52d76",
"version": "0.6.0",
"port-version": 2
},
{
"git-tree": "1fceaa6733361ea635af35ec1ce9b3caf47e0ffc",
"version": "0.6.0",