From 09a68f7d30ce3f07cc48a68f6350e5ee8be9042a Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 15 May 2010 18:51:02 -0500 Subject: [PATCH] Whoops. Make sure CMake scripts copy SDL dylib only if it is being linked to it in the first place... --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}) -- 2.39.2