Improved OSX/Cmake and dylibs' execution path

This commit is contained in:
Marco Antognini 2011-08-04 00:38:35 +02:00
parent 7f11d16f3b
commit 6b98053101
2 changed files with 8 additions and 2 deletions

View file

@ -83,7 +83,7 @@ if(BUILD_SHARED_LIBS)
set(GRAPHICS_EXT_LIBS ${GRAPHICS_EXT_LIBS} ${X11_LIBRARIES})
elseif(MACOSX)
# We use static version of freetype so we need to link against zlib.
set(GRAPHICS_EXT_LIBS ${GRAPHICS_EXT_LIBS} ${ZLIB_LIBRARIES} "-framework AGL")
set(GRAPHICS_EXT_LIBS ${GRAPHICS_EXT_LIBS} ${ZLIB_LIBRARIES})
endif()
endif()