Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 9, 2009, 1:10:33 PM (15 years ago)
Author:
rgrieder
Message:
  • Using dependency directory directly in root dir of a branch as primary folder (./libs resp. ./dependencies) Second priority is ../libs for MinGW and ../lib_dist/vc8/dependencies for msvc.
  • Moved compiler and linker flags to ConfigPlatforms.cmake
  • Solved additional libraries for ENet under MinGW directly in FindEnet.cmake
File:
1 edited

Legend:

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

    r2581 r2582  
    3232
    3333IF (MINGW)
    34   MESSAGE(STATUS "Running on MinGW. Using customized paths.")
    35   SET(MINGW_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/../libs")
     34  MESSAGE(STATUS "Running on MinGW. Using customized paths and options.")
     35
     36  # Determine library directory
     37  IF(EXISTS ${CMAKE_SOURCE_DIR}/libs)
     38    SET(MINGW_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/libs")
     39  ELSEIF(EXISTS ${CMAKE_SOURCE_DIR}/../lis)
     40    SET(MINGW_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/../libs")
     41  ELSE(EXISTS ${CMAKE_SOURCE_DIR}/libs)
     42    MESSAGE(FATAL_ERROR "Could not find dependency directory for the MinGW libraries")
     43  ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/libs)
    3644  MARK_AS_ADVANCED(MING_LIBRARY_DIR)
    3745
     
    4149  SET(ENV{CEGUIDIR}    ${MINGW_LIBRARY_DIR}/cegui-0.6.1)
    4250  SET(ENV{ENETDIR}     ${MINGW_LIBRARY_DIR}/enet-1.1)
    43   # ENet is linked statically, hence we need to add some windows dependencies
    44   SET(ENET_ADDITIONAL_LIBRARIES ws2_32 winmm)
    4551  SET(ENV{ALUTDIR}     ${MINGW_LIBRARY_DIR}/freealut-1.1.0)
    4652  SET(ENV{OGGSDIR}     ${MINGW_LIBRARY_DIR}/libogg-1.1.3
     
    6167  ENDIF (NOT ENV{DXSDK_DIR})
    6268
    63   # MINGW doesn't like the -fPIC flag very much
    64   SET(ORXONOX_FPIC_FLAG "")
     69  # MINGW doesn't like the -fPIC flag, reconfigure flags
     70  SET(CMAKE_C_FLAGS   "$ENV{CFLAGS}   ${ORXONOX_WARNING_FLAGS)")
     71  SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} ${ORXONOX_WARNING_FLAGS)")
    6572ENDIF (MINGW)
    66 
    67 #MARK_AS_ADVANCED(MINGW_LIBRARY_DIR)
Note: See TracChangeset for help on using the changeset viewer.