Ticket #32302: patch-CMake_InstallResources.cmake

File patch-CMake_InstallResources.cmake, 775 bytes (added by marin.saric@…, 13 years ago)
Line 
1--- CMake/InstallResources.cmake.orig   2011-05-08 20:28:04.000000000 +0200
2+++ CMake/InstallResources.cmake        2011-11-11 04:44:58.000000000 +0100
3@@ -20,7 +20,7 @@
4   set(OGRE_SAMPLES_DIR_REL ".")
5   set(OGRE_SAMPLES_DIR_DBG ".")
6   set(OGRE_CFG_INSTALL_PATH "bin")
7-elseif (APPLE)
8+elseif (APPLE AND NOT MACPORTS)
9   set(OGRE_MEDIA_PATH "Media")
10   if(OGRE_BUILD_PLATFORM_IPHONE)
11     set(OGRE_MEDIA_DIR_REL "${OGRE_MEDIA_PATH}")
12@@ -42,7 +42,7 @@
13   set(OGRE_SAMPLES_DIR_REL "")
14   set(OGRE_SAMPLES_DIR_DBG "")
15   set(OGRE_CFG_INSTALL_PATH "bin")
16-elseif (UNIX)
17+elseif (UNIX OR MACPORTS)
18   set(OGRE_MEDIA_PATH "share/OGRE/media")
19   set(OGRE_MEDIA_DIR_REL "${CMAKE_INSTALL_PREFIX}/${OGRE_MEDIA_PATH}")
20   set(OGRE_MEDIA_DIR_DBG "${CMAKE_INSTALL_PREFIX}/${OGRE_MEDIA_PATH}")