diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/glog/fix_cplusplus_macro.patch | |
Diffstat (limited to 'vcpkg/ports/glog/fix_cplusplus_macro.patch')
| -rw-r--r-- | vcpkg/ports/glog/fix_cplusplus_macro.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/glog/fix_cplusplus_macro.patch b/vcpkg/ports/glog/fix_cplusplus_macro.patch new file mode 100644 index 0000000..bd9d0e1 --- /dev/null +++ b/vcpkg/ports/glog/fix_cplusplus_macro.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 985f5f5..bf6600e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -476,6 +476,10 @@ if (CYGWIN OR WIN32) + target_compile_definitions (glog PUBLIC GLOG_NO_ABBREVIATED_SEVERITIES) + endif (CYGWIN OR WIN32) + ++if ((MSVC) AND (MSVC_VERSION GREATER_EQUAL 1914)) ++ target_compile_options(glog INTERFACE "$<$<NOT:$<COMPILE_LANGUAGE:CUDA>>:/Zc:__cplusplus>") ++endif() ++ + set_target_properties (glog PROPERTIES PUBLIC_HEADER "${GLOG_PUBLIC_H}") + + target_include_directories (glog BEFORE PUBLIC |