]> git.jsancho.org Git - lugaru.git/commitdiff
Whoops. Make sure CMake scripts copy SDL dylib only if it is being linked to it in...
authorNeal Gompa <ngompa13@gmail.com>
Sat, 15 May 2010 23:51:02 +0000 (18:51 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Sat, 15 May 2010 23:51:02 +0000 (18:51 -0500)
CMakeLists.txt

index 88f3e50f605b2738b00771022e032d13ba5541b3..cdc4e15104769b2dc0a037c92032d1bd4e41e1cd 100644 (file)
@@ -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})