about summary refs log tree commit diff
path: root/CMake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake')
-rw-r--r--CMake/AbseilHelpers.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake
index 9e1772bb5f0e..b114b297cb27 100644
--- a/CMake/AbseilHelpers.cmake
+++ b/CMake/AbseilHelpers.cmake
@@ -74,12 +74,13 @@ function(absl_header_library)
 
   if(NOT EXISTS ${__dummy_header_only_lib_file})
     file(WRITE ${__dummy_header_only_lib_file}
-      "\
-       /* generated file for header-only cmake target */ \
-       \
-       // single meaningless symbol \
-       void __${_NAME}__header_fakesym() {} \
-       \
+      "/* generated file for header-only cmake target */
+
+      namespace absl {
+
+       // single meaningless symbol
+       void ${_NAME}__header_fakesym() {}
+      }  // namespace absl
       "
     )
   endif()