From e1e0f655c529aab2c7eed2b33fe4981f0fb0512b Mon Sep 17 00:00:00 2001 From: Danny Edel Date: Mon, 23 Oct 2017 15:04:52 +0200 Subject: [PATCH] Clang: Add -Wno-error=undefined-func-template --- cmake/compiler_clang.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmake/compiler_clang.cmake b/cmake/compiler_clang.cmake index 643536e8..a507c904 100644 --- a/cmake/compiler_clang.cmake +++ b/cmake/compiler_clang.cmake @@ -35,6 +35,16 @@ add_definitions(-Wno-error=undefined-reinterpret-cast) # Clang on recent XCode fails to compile the boost tests add_definitions(-Wno-error=disabled-macro-expansion) +# Clang-5.0 notices this on runtimeconfiguration.cpp:201:14 +# +# 'boost::program_options::parse_config_file' required here, but no +# definition is available [-Werror,-Wundefined-func-template] +# store( parse_config_file( cfile, configFileOptions), vm); +# +# FIXME: This is a workaround, not a solution. +# See #191 at https://github.com/dannyedel/dspdfviewer/issues/191 +add_definitions(-Wno-error=undefined-func-template) + #message(FATAL_ERROR "Version: ${CMAKE_CXX_COMPILER_VERSION}") # clang will complain about -isystem passed but not used.