Merge branch 'zlib_private_link_interface' into 'master'

cmake - private linking of zlib

See merge request ngsolve/netgen!509
This commit is contained in:
Hochsteger, Matthias 2022-07-11 11:21:06 +02:00
commit 68a1a225b6

View File

@ -248,7 +248,7 @@ target_include_directories(nglib PRIVATE ${ZLIB_INCLUDE_DIRS})
if(USE_GUI)
target_include_directories(nggui PRIVATE ${ZLIB_INCLUDE_DIRS})
endif(USE_GUI)
target_link_libraries(nglib PUBLIC ${ZLIB_LIBRARIES})
target_link_libraries(nglib PRIVATE ${ZLIB_LIBRARIES})
#######################################################################
if(WIN32)