Skip to content

Commit dc58c16

Browse files
committed
Merge branch 'master' into multicastvnc
2 parents 9b9be76 + 0ceaf9c commit dc58c16

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ else()
211211
endif(JPEG_FOUND)
212212
if(PNG_FOUND)
213213
set(LIBVNCSERVER_HAVE_LIBPNG 1)
214+
else()
215+
unset(PNG_LIBRARIES) # would otherwise contain -NOTFOUND, confusing target_link_libraries()
214216
endif(PNG_FOUND)
215217
if(NOT OPENSSL_FOUND)
216218
unset(OPENSSL_LIBRARIES) # would otherwise contain -NOTFOUND, confusing target_link_libraries()

0 commit comments

Comments
 (0)