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 9b02856 commit a899dd0Copy full SHA for a899dd0
tests/CMakeLists.txt
@@ -124,14 +124,14 @@ find_package(Boost 1.56)
124
function(pybind11_enable_warnings target_name)
125
if(MSVC)
126
target_compile_options(${target_name} PRIVATE /W4)
127
- else()
+ elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Intel|Clang)")
128
target_compile_options(${target_name} PRIVATE -Wall -Wextra -Wconversion -Wcast-qual -Wdeprecated)
129
endif()
130
131
if(PYBIND11_WERROR)
132
133
target_compile_options(${target_name} PRIVATE /WX)
134
135
target_compile_options(${target_name} PRIVATE -Werror)
136
137
0 commit comments