Skip to content

Commit

Permalink
Fix link error when building without MLIR (#10485)
Browse files Browse the repository at this point in the history
  • Loading branch information
mosout authored Apr 15, 2024
1 parent a130148 commit 3d7b87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/oneflow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ if(APPLE)
set(of_libs ${ALL_ARCHIVE_BEGIN} oneflow of_op_schema ${ALL_ARCHIVE_END})
target_link_libraries(oneflow of_protoobj of_functional_obj ${oneflow_third_party_libs})
elseif(UNIX)
set(of_libs ${ALL_ARCHIVE_BEGIN} of_op_schema ${ALL_ARCHIVE_END} -ldl -lrt)
set(of_libs ${ALL_ARCHIVE_BEGIN} oneflow of_op_schema ${ALL_ARCHIVE_END} -ldl -lrt)
target_link_libraries(
oneflow
of_protoobj
Expand Down

0 comments on commit 3d7b87d

Please sign in to comment.