tools/CMakeLists.txt
changeset 2401 2a694ea2a437
parent 2220 110266ba2ef7
child 2546 5fa4aa6bb804
--- a/tools/CMakeLists.txt	Fri Oct 02 16:49:31 2009 +0000
+++ b/tools/CMakeLists.txt	Fri Oct 02 18:44:37 2009 +0000
@@ -13,6 +13,8 @@
 
 set(frameworks_dir ${bundle_name}/Contents/Frameworks/)
 
+string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}")
+
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CreateMacBundle.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/CreateMacBundle.cmake)
 
-endif()
+endif(APPLE AND BUNDLE)