Ticket #32302: patch-CMake_CMakeLists.txt.diff

File patch-CMake_CMakeLists.txt.diff, 546 bytes (added by marin.saric@…, 13 years ago)
  • CMake/CMakeLists.txt

    old new  
    1313# directory, but can also be used for custom projects.
    1414#############################################################
    1515
    16 if(WIN32 OR APPLE)
     16if(WIN32)
    1717        set(OGRE_CMAKE_DIR "CMake")
     18elseif(APPLE)
     19  if(NOT MACPORTS)
     20    set(OGRE_CMAKE_DIR "CMake")
     21  else()
     22    set(OGRE_CMAKE_DIR ${MACPORTS_CMAKE_MODULE_PATH})
     23  endif()
    1824else()
    1925        set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
    2026endif()