File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,13 @@ endif()
118
118
if (MINGW )
119
119
add_definitions (-DLIBPLZMA_MINGW=1 )
120
120
message ("MinGW" )
121
+
122
+ # CXX ignore private external function attributes. Always link.
123
+ check_cxx_compiler_flag ("-Wno-attributes" WITH_WNO_ATTRIBUTES_CXX )
124
+ if (WITH_WNO_ATTRIBUTES_CXX )
125
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes" )
126
+ endif ()
127
+
121
128
endif ()
122
129
123
130
if (MSVC )
@@ -184,14 +191,6 @@ else()
184
191
endif ()
185
192
endif ()
186
193
187
- if (MINGW )
188
- # CXX ignore private external function attributes. Always link.
189
- check_cxx_compiler_flag ("-Wno-attributes" WITH_WNO_ATTRIBUTES_CXX )
190
- if (WITH_WNO_ATTRIBUTES_CXX )
191
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes" )
192
- endif ()
193
- endif ()
194
-
195
194
endif ()
196
195
197
196
if (LIBPLZMA_OPT_TESTS )
You can’t perform that action at this time.
0 commit comments