cmake - private linking of zlib

This commit is contained in:
Matthias Hochsteger 2022-07-11 11:10:54 +02:00
parent fa05864df4
commit 0e45a07c6a

View File

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