Fix link problem with gcc compiler and loadpng library.

This commit is contained in:
David Capello 2012-08-12 14:49:24 -03:00
parent 25605d8c06
commit 3f7d7b00b7

View File

@ -80,7 +80,7 @@ if(USE_SHARED_LIBLOADPNG)
set(libs3rdparty ${libs3rdparty} ${LIBLOADPNG_LIBRARY})
include_directories(${LIBLOADPNG_INCLUDE_DIR})
else()
set(libs3rdparty ${libs3rdparty} loadpng)
set(libs3rdparty loadpng ${libs3rdparty})
include_directories(${LOADPNG_DIR})
endif()