Only build before library target if there is any

This commit is contained in:
Roland Kaufmann
2013-08-14 23:39:06 +02:00
parent 022eb51c8b
commit 8d3b0fed71
+3 -1
View File
@@ -46,7 +46,9 @@ else ()
# the target above gets built every time thanks to the "ALL" modifier,
# but it must also be done before the main library so it can pick up
# any changes it does.
add_dependencies (${${project}_TARGET} update-version)
if (${project}_TARGET)
add_dependencies (${${project}_TARGET} update-version)
endif ()
endif ()
endif ()