Add embedded GTK UI lib as a dependency of the updater

When building the updater target from outside the updater-installer/
build dir in the context of a larger project, CMake failed
to determine how to build libupdatergtk.so in the context
of the dependency chain updater -> updatershared -> libupdatergtk.cpp ->
libupdatergtk.so

Resolve this for now by adding an explicit updatershared ->
resource_updatergtk dependency.

MD-19678 #time 2h
This commit is contained in:
Robert Knight 2013-09-04 12:49:03 +01:00
parent e74435e871
commit 6a56b5cddc

View file

@ -106,6 +106,10 @@ target_link_libraries(updatershared
tinythread
)
if(LINUX)
add_dependencies(updatershared resource_updatergtk)
endif()
if(APPLE)
find_library(COCOA_LIBRARY Cocoa)
find_library(SECURITY_LIBRARY Security)