Remove warning from cmake process

This commit is contained in:
Pavel Krajcevski 2012-08-27 12:58:44 -04:00
parent 4e43207fd8
commit 5bebdc3b07

View File

@ -11,7 +11,7 @@ SET( HEADERS
FIND_PACKAGE( PNG )
IF( PNG_FOUND )
INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} )
TARGET_LINK_LIBRARIES( ${PNG_LIBRARY} )
SET( SOURCES ${SOURCES} "src/ImageLoaderPNG.cpp" )
SET( HEADERS ${HEADERS} "src/ImageLoaderPNG.h" )
@ -29,3 +29,7 @@ ADD_LIBRARY(TexCompIO
${SOURCES}
${HEADERS}
)
IF( PNG_FOUND )
TARGET_LINK_LIBRARIES( TexCompIO ${PNG_LIBRARY} )
ENDIF()