From: Sergiu Dotenco Date: Fri, 27 Mar 2015 17:12:24 +0000 (+0100) Subject: cmake: disabled 'template argument uses unnamed type' warning X-Git-Tag: submit/tizen/20180313.064233~84^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95cde7af2f115daa2881b329864c6d2e276671f5;p=platform%2Fupstream%2Fglog.git cmake: disabled 'template argument uses unnamed type' warning --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ffc29a2..e694128 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,6 +95,8 @@ check_function_exists (sigaction HAVE_SIGACTION) check_function_exists (sigaltstack HAVE_SIGALSTACK) check_cxx_compiler_flag (-Wno-deprecated HAVE_NO_DEPRECATED) +check_cxx_compiler_flag (-Wno-unnamed-type-template-args + HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS) # NOTE: Cannot use check_function_exists here since >=vc-14.0 can define # snprintf as an inline function @@ -361,6 +363,10 @@ if (WIN32 AND HAVE_SNPRINTF) HAVE_SNPRINTF) endif (WIN32 AND HAVE_SNPRINTF) +if (HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS) + target_compile_options (glog PUBLIC -Wno-unnamed-type-template-args) +endif (HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS) + if (gflags_FOUND) target_include_directories (glog PUBLIC ${gflags_INCLUDE_DIR}) target_link_libraries (glog PUBLIC ${gflags_LIBRARIES})