We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21c3911 commit e11e71dCopy full SHA for e11e71d
tests/CMakeLists.txt
@@ -126,14 +126,14 @@ find_package(Boost 1.56)
126
function(pybind11_enable_warnings target_name)
127
if(MSVC)
128
target_compile_options(${target_name} PRIVATE /W4)
129
- else()
+ elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Intel|Clang)")
130
target_compile_options(${target_name} PRIVATE -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated)
131
endif()
132
133
if(PYBIND11_WERROR)
134
135
target_compile_options(${target_name} PRIVATE /WX)
136
137
target_compile_options(${target_name} PRIVATE -Werror)
138
139
0 commit comments