Skip to content

Commit

Permalink
Clang: Add -Wno-error=undefined-func-template
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyedel committed Oct 23, 2017
1 parent 1016f38 commit e1e0f65
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/compiler_clang.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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<char>' 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.
Expand Down

0 comments on commit e1e0f65

Please sign in to comment.