Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2645


Ignore:
Timestamp:
Feb 12, 2009, 2:03:07 PM (16 years ago)
Author:
rgrieder
Message:
  • Bugfix: CMake searches the install path per default when finding libraries. That means having Orxonox built my MSVC already installed will screw your mingw compilation.

—> Removed install path from the search paths for Windows

  • Bugfix: Media path default value was still pointing to the development media directory.

Tested mingw and msvc 2008 binaries on another windows xp box (no installed depdencies, no visual studio, no mingw installed, no DirectX SDK, just DX9.0c). It runs without initial orxonox.ini, as should be the case anyway.
Now its time to test this on Linux, though there will be files written to usr/bin

Location:
code/branches/buildsystem2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/LibraryConfig.cmake

    r2644 r2645  
    2828INCLUDE(CompareVersionStrings)
    2929INCLUDE(FindPackageHandleStandardArgs)
     30
     31# Prevent CMake from finding libraries in the installation folder on windows
     32# There might already be an installation from another compiler
     33LIST(REMOVE_ITEM CMAKE_SYSTEM_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}")
    3034
    3135############## Platform Scripts #################
  • code/branches/buildsystem2/src/OrxonoxConfig.h.in

    r2643 r2645  
    188188namespace orxonox
    189189{
    190     const char* const ORXONOX_MEDIA_PATH("@ORXONOX_MEDIA_DIRECTORY@");
     190#ifdef ORXONOX_PLATFORM_WINDOWS
     191    const char* const ORXONOX_MEDIA_PATH("../media");
     192#elif defined(ORXONOX_PLATFORM_LINUX)
     193    const char* const ORXONOX_MEDIA_PATH("../share/orxonox");
     194#else
     195    /* TODO: Apple? */
     196    const char* const ORXONOX_MEDIA_PATH("../share/orxonox");
     197#endif
    191198   
    192199#ifdef NDEBUG
Note: See TracChangeset for help on using the changeset viewer.