CMakeLists: Link in system framework libraries explicitly on macOS

Makes our libraries explicitly link in which libraries they need.
This makes our dependencies explicit and removes the reliance on the
LIBS variable to contain the libraries that they need.
This commit is contained in:
Lioncash
2018-03-30 15:43:49 -04:00
parent 7833f1a931
commit e93159e54a
5 changed files with 26 additions and 18 deletions

View File

@ -9,9 +9,13 @@ add_library(uicommon
VideoUtils.cpp
)
target_link_libraries(uicommon PUBLIC
target_link_libraries(uicommon
PUBLIC
common
cpp-optparse
PRIVATE
$<$<BOOL:APPLE>:${IOK_LIBRARY}>
)
if(USE_X11)