[cmake] Set link interface of Tcl/Tk to PRIVATE

This commit is contained in:
Matthias Hochsteger 2018-11-15 16:32:28 +01:00
parent c1a407c4f6
commit 3adfebd63d

View File

@ -35,7 +35,7 @@ if(USE_GUI)
target_link_libraries( netgen ${TK_LIBRARY} ${TCL_LIBRARY})
else(APPLE)
# On other systems assume that the found libraries are compatible with python/tkinter
target_link_libraries( gui PUBLIC ${TK_LIBRARY} ${TCL_LIBRARY})
target_link_libraries( gui PRIVATE ${TK_LIBRARY} ${TCL_LIBRARY})
endif(APPLE)
if(NOT WIN32)