Skip to content

Commit e3c4a58

Browse files
committed
add -Wno-error=pessimizing-move only on macos
1 parent 8868a54 commit e3c4a58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

paddle/contrib/inference/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# limitations under the License.
1414
#
1515

16-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=pessimizing-move")
16+
if(APPLE)
17+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=pessimizing-move")
18+
endif(APPLE)
1719

1820
function(inference_api_test TARGET_NAME TEST_SRC DEP_TEST)
1921
set(options "")

0 commit comments

Comments
 (0)