From 3f7d7b00b71d892ab1174a55f5da12c2b9b9966a Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 12 Aug 2012 14:49:24 -0300 Subject: [PATCH] Fix link problem with gcc compiler and loadpng library. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c3c714cbb..6ae2fcadf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()