We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a91d6f7 commit e908698Copy full SHA for e908698
CMakeLists.txt
@@ -102,12 +102,13 @@ project_options(ENABLE_CACHE ENABLE_COMPILE_COMMANDS_SYMLINK)
102
file(GLOB_RECURSE SOURCES "./src/*.cc")
103
add_library(addon SHARED ${SOURCES})
104
105
-if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
+if(CMAKE_CXX_COMPILER_ID STREQUAL GNU
106
+ OR CMAKE_CXX_COMPILER_ID STREQUAL Clang
107
+ OR CMAKE_CXX_COMPILER_ID STREQUAL AppleClang)
108
target_compile_options(project_warnings INTERFACE "-Wno-shadow")
109
endif()
110
target_link_libraries(addon PRIVATE project_options project_warnings)
111
-
112
if(ZMQ_DRAFT)
113
target_compile_definitions(addon PRIVATE ZMQ_BUILD_DRAFT_API)
114
0 commit comments