Skip to content

Commit d2b6d2c

Browse files
committed
Fix conditional dependency on missing target
1 parent eac5d68 commit d2b6d2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/main/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ set(TARGET main)
22
add_executable(${TARGET} main.cpp)
33
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
44
target_compile_features(${TARGET} PRIVATE cxx_std_11)
5-
add_dependencies(${TARGET} BUILD_INFO)
5+
if(TARGET BUILD_INFO)
6+
add_dependencies(${TARGET} BUILD_INFO)
7+
endif()

0 commit comments

Comments
 (0)