2022-06-24 06:29:07 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-12-03 01:14:32 +08:00
|
|
|
index d145517..e8e1c90 100644
|
2022-06-24 06:29:07 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -669,6 +669,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))
|
2022-12-03 01:14:32 +08:00
|
|
|
+ target_compile_options(glog INTERFACE "$<$<NOT:$<COMPILE_LANGUAGE:CUDA>>:/Zc:__cplusplus>")
|
2022-06-24 06:29:07 +08:00
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
if (WITH_CUSTOM_PREFIX)
|
|
|
|
target_compile_definitions (glog PUBLIC GLOG_CUSTOM_PREFIX_SUPPORT)
|
|
|
|
endif (WITH_CUSTOM_PREFIX)
|