From: Neal Gompa Date: Sat, 15 May 2010 23:51:02 +0000 (-0500) Subject: Whoops. Make sure CMake scripts copy SDL dylib only if it is being linked to it in... X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=commitdiff_plain;h=09a68f7d30ce3f07cc48a68f6350e5ee8be9042a Whoops. Make sure CMake scripts copy SDL dylib only if it is being linked to it in the first place... --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 88f3e50..cdc4e15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -504,9 +504,9 @@ if(WIN32) endif(MINGW) else(WIN32) install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_PREFIX}) - if(APPLE) + if(APPLE AND LUGARU_HAS_INTERNAL_SDL) install(FILES ${SDLDIR}/lib/macosx/libSDL-1.2.0.dylib DESTINATION ${CMAKE_INSTALL_PREFIX}) - endif(APPLE) + endif(APPLE AND LUGARU_HAS_INTERNAL_SDL) endif(WIN32) install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX})