Skip to content

Commit

Permalink
Force BOOST_PP_VARIADIC for clang
Browse files Browse the repository at this point in the history
Current clang has full support for all variadic macro feature required
by Boost.Preprocessor. However, older Boost turned off variadic feature
for clang by default, probably because clang was broken at that time. It
should be safe to turn it on now.
  • Loading branch information
realthunder committed Jan 29, 2017
1 parent c4b599d commit fb5b69c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Expand Up @@ -98,6 +98,13 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
endif()
endif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)

if(CMAKE_COMPILER_IS_CLANGXX)
# older boost.preprocessor turn off variadics for clang
add_definitions(-DBOOST_PP_VARIADICS=1)
message(STATUS "Force BOOST_PP_VARIADICS=1 for clang")
endif()


# ================================================================================
# Output directories for install target

Expand Down

0 comments on commit fb5b69c

Please sign in to comment.