Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2010, 1:44:21 PM (14 years ago)
Author:
rgrieder
Message:

Static linking to the libraries in src/external should work now (at least on Windows with MSVC).
There are no STATIC/SHARED options anymore. Instead all of our own libraries get linked dynamically anyway because it simply doesn't work otherwise (there is really no way to link them statically).
The linking behaviour for external libraries can be changed with the CMake cache variable ORXONOX_EXTERNAL_LINK_MODE, but it defaults to SHARED.
Also, I had to revert the DEFINE_SYMBOL changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/external/ogreceguirenderer/CMakeLists.txt

    r7135 r7143  
    3232ORXONOX_ADD_LIBRARY(ogreceguirenderer_orxonox
    3333  ORXONOX_EXTERNAL
     34  DEFINE_SYMBOL
     35    "OGRE_GUIRENDERER_EXPORTS"
     36  VERSION
     37    1.4.9
    3438  LINK_LIBRARIES
    3539    ${OGRE_LIBRARY}
    3640    ${CEGUI_LIBRARY}
    37   DEFINE_SYMBOL
    38     shared "OGRE_GUIRENDERER_EXPORTS" static "OGRE_GUIRENDERER_STATIC_LIB"
    39   VERSION
    40     1.4.9
    4141  SOURCE_FILES
    4242    ${OCR_FILES}
Note: See TracChangeset for help on using the changeset viewer.