Skip to content

Commit

Permalink
cmake: Allow using unknown attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jul 2, 2019
1 parent ac14a4f commit 3be99c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ add_subdirectory(evmc)

cable_configure_compiler(NO_PEDANTIC NO_CONVERSION_WARNINGS)
if(CABLE_COMPILER_GNULIKE)
add_compile_options(-Wno-attributes) # Allow using unknown attributes.

# Prepend to CXX flags to allow overriding.
set(CMAKE_CXX_FLAGS "-fvisibility=hidden ${CMAKE_CXX_FLAGS}")
elseif(MSVC)
add_compile_options(/wd4324) # Disabled warning about alignment casued by alignas.
add_compile_options(/wd5030) # Allow using unknown attributes.
endif()

set(include_dir ${CMAKE_CURRENT_SOURCE_DIR}/include)
Expand Down

0 comments on commit 3be99c0

Please sign in to comment.