Skip to content

Commit d06549c

Browse files
committed
remove flagcx dependency when not compiling with flagcx
1 parent 3e365f1 commit d06549c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backends/iluvatar_gpu/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ target_include_directories(external_error_proto
7070
target_link_libraries(external_error_proto PUBLIC protobuf)
7171
set_target_properties(external_error_proto PROPERTIES POSITION_INDEPENDENT_CODE
7272
ON)
73-
add_custom_target(external_deps DEPENDS eigen3 zlib protobuf flagcx)
73+
add_custom_target(external_deps DEPENDS eigen3 zlib protobuf)
74+
if(WITH_FLAGCX)
75+
add_custom_target(external_deps DEPENDS flagcx)
76+
endif()
7477

7578
if(WITH_COREX)
7679
add_definitions(-DPADDLE_WITH_COREX)

0 commit comments

Comments
 (0)