From 9d20de068c609a69ad8dfee5ccae5c464aca3d6b Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sun, 29 Jan 2012 14:39:48 +0100 Subject: [PATCH] Move JPEG dependency Alas, JPEG_FACTORY is in SimGearScene, not SimGearCore... --- simgear/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index a7ac3932..684e2eee 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -56,7 +56,7 @@ if(SIMGEAR_SHARED) set_property(TARGET SimGearCore PROPERTY VERSION ${SIMGEAR_VERSION}) set_property(TARGET SimGearCore PROPERTY SOVERSION ${SIMGEAR_SOVERSION}) - target_link_libraries(SimGearCore ${ZLIB_LIBRARY} ${RT_LIBRARY} ${JPEG_LIBRARY}) + target_link_libraries(SimGearCore ${ZLIB_LIBRARY} ${RT_LIBRARY}) install(TARGETS SimGearCore LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) if(NOT SIMGEAR_HEADLESS) @@ -84,7 +84,8 @@ if(SIMGEAR_SHARED) ${ZLIB_LIBRARY} ${OPENSCENEGRAPH_LIBRARIES} ${OPENAL_LIBRARY} ${ALUT_LIBRARY} - ${OPENGL_LIBRARY}) + ${OPENGL_LIBRARY} + ${JPEG_LIBRARY}) if(LIBSVN_FOUND) target_link_libraries(SimGearScene ${LIBSVN_LIBRARIES}) -- 2.39.5