Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3196 for code/trunk/cmake


Ignore:
Timestamp:
Jun 20, 2009, 9:20:47 AM (15 years ago)
Author:
rgrieder
Message:

Merged pch branch back to trunk.

Location:
code/trunk
Files:
1 deleted
9 edited
8 copied

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/cmake/BuildConfig.cmake

    r2896 r3196  
    7070ENDIF()
    7171
     72# Enable expensive optimisations: Use this for a binary release build
     73OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE)
     74
     75# Use WinMain() or main()?
     76OPTION(ORXONOX_USE_WINMAIN "Use WinMain (doesn't show console) or main" FALSE)
    7277
    7378################# OGRE Plugins ##################
  • code/trunk/cmake/BuildConfigGCC.cmake

    r3111 r3196  
    2424 #
    2525
     26# Shortcut for CMAKE_COMPILER_IS_GNUCXX and ..._GNUC
     27SET(CMAKE_COMPILER_IS_GNU TRUE)
     28
    2629# Determine compiler version
    2730EXEC_PROGRAM(
     
    3841IF(_compare_result LESS 0)
    3942  SET(GCC_NO_SYSTEM_HEADER_SUPPORT TRUE)
     43ENDIF()
     44
     45# GCC only supports PCH in versions 3.4 and above
     46INCLUDE(CompareVersionStrings)
     47COMPARE_VERSION_STRINGS("${GCC_VERSION}" "3.4.0" _compare_result)
     48IF(_compare_result GREATER -1)
     49  SET(PCH_COMPILER_SUPPORT TRUE)
    4050ENDIF()
    4151
     
    6777ADD_COMPILER_FLAGS("-Wno-deprecated" CXX CACHE)
    6878
     79# Always show why a precompiled header file could not be used
     80ADD_COMPILER_FLAGS("-Winvalid-pch" CXX CACHE)
     81
    6982# Increase warning level if requested
    7083IF(EXTRA_COMPILER_WARNINGS)
  • code/trunk/cmake/BuildConfigMSVC.cmake

    r2710 r3196  
    2424 #
    2525
     26################### Compiler Version ####################
     27
     28# We make use of variadic macros, which is only supported by MSVC 8 and above
     29IF(MSVC_VERSION LESS 1400)
     30  MESSAGE(FATAL_ERROR "Microsoft Visual Studio versions below 8 (2005) are not supported because of missing compiler extensions.")
     31ENDIF()
     32
     33
    2634######################## Options ########################
    2735
    28 OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" FALSE)
     36# Currently VLD has a problem with MSVC9 although it actually is supported
     37IF(MSVC8)
     38  OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" off)
     39ENDIF()
     40# Make sure the value is "on" or "off" for vld.ini
     41IF(VISUAL_LEAK_DETECTOR_ENABLE)
     42  SET(VISUAL_LEAK_DETECTOR_ENABLE on)
     43ELSE()
     44  SET(VISUAL_LEAK_DETECTOR_ENABLE off)
     45ENDIF()
     46
     47# Orxonox only supports MSVC 8 and above, which gets asserted above
     48SET(PCH_COMPILER_SUPPORT TRUE)
     49
    2950
    3051#################### Compiler Flags #####################
     
    4768
    4869# Overwrite CMake default flags here.
    49 SET_COMPILER_FLAGS("-MDd -Od -ZI -D_DEBUG -Gm -RTC1" Debug          CACHE)
     70SET_COMPILER_FLAGS("-MDd -Od -Zi -D_DEBUG -Gm -RTC1" Debug          CACHE)
    5071SET_COMPILER_FLAGS("-MD  -O2     -DNDEBUG -MP2"      Release        CACHE)
    5172SET_COMPILER_FLAGS("-MD  -O2 -Zi -DNDEBUG -MP2"      RelWithDebInfo CACHE)
     
    7596# Happens on STL member variables which are not public
    7697ADD_COMPILER_FLAGS("-w44251" CACHE)
     98ADD_COMPILER_FLAGS("-w44275" CACHE) # For inheritance
    7799
    78100# Multiple assignment operators specified
  • code/trunk/cmake/FlagUtilities.cmake

    r2792 r3196  
    2424 #    Release, Debug, RelWithDebInfo, MinSizeRel: Build configs (inclusive)
    2525 #    ReleaseAll: Sets the flags of all three release builds
    26  #    CACHE: Values are witten with SET_CACHE (see above)
     26 #    CACHE: Values are witten with SET_CACHE_ADVANCED
    2727 #    FORCE: When writing to the cache, the values are set anyway
    2828 #    Any variable names (like WIN32, MSVC, etc.): Condition (combined with AND)
    2929 #    You can suffix the condition with a NOT if you wish
    30  #  Functions:
     30 #  Function names:
    3131 #    [ADD/SET/REMOVE]_[COMPILER/LINKER]_FLAGS
    3232 #  Caution: -If you use CACHE after calling the macro without CACHE, the value
    33  #            Will not get written unless FORCE is specified.
     33 #            Will not be written unless FORCE is specified.
    3434 #          - Also be aware to always specify the flags in quotes.
    3535 #  Example:
     
    3737 #    This will only remove the CXX (C++) flags on a non Unix system for the
    3838 #    Release, RelWithDebInfo and MinSizeRel configurations. The macros should
    39  #    be able to cope with "test -foo" that is like another flag in the string.
     39 #    be able to cope with "test -foo" as string argument for a flag.
    4040 #
    4141
    42 # Write to the cache by force, but only if the user didn't edit the value
    43 # Additional argument is the value (may also be a list)
    44 MACRO(SET_CACHE _varname _type _docstring)
    45   SET(_value ${ARGN})
    46   IF(NOT "${_type}" MATCHES "^(STRING|BOOL|PATH|FILEPATH)$")
    47     MESSAGE(FATAL_ERROR "${_type} is not a valid CACHE entry type")
    48   ENDIF()
     42INCLUDE(SeparateFlags)
     43INCLUDE(SetCacheAdvanced)
    4944
    50   IF(NOT DEFINED _INTERNAL_${_varname} OR "${_INTERNAL_${_varname}}" STREQUAL "${${_varname}}")
    51     SET(${_varname} "${_value}" CACHE ${_type} "${_docstring}" FORCE)
    52     SET(_INTERNAL_${_varname} "${_value}" CACHE INTERNAL "Do not edit in any case!")
    53   ENDIF()
    54 ENDMACRO(SET_CACHE)
     45# Compiler flags, additional arguments:
     46# C, CXX: Specify a language, default is both
     47MACRO(SET_COMPILER_FLAGS _flags)
     48  _INTERNAL_PARSE_FLAGS_ARGS(SET "C;CXX" "" "${_flags}" "${ARGN}")
     49ENDMACRO(SET_COMPILER_FLAGS)
     50# Add flags (flags don't get added twice)
     51MACRO(ADD_COMPILER_FLAGS _flags)
     52  _INTERNAL_PARSE_FLAGS_ARGS(APPEND "C;CXX" "" "${_flags}" "${ARGN}")
     53ENDMACRO(ADD_COMPILER_FLAGS)
     54# Remove flags
     55MACRO(REMOVE_COMPILER_FLAGS _flags)
     56  _INTERNAL_PARSE_FLAGS_ARGS(REMOVE_ITEM "C;CXX" "" "${_flags}" "${ARGN}")
     57ENDMACRO(REMOVE_COMPILER_FLAGS)
    5558
    56 # Visual studio (esp. IntelliSense) doesn't like dashes to specify arguments
    57 # Always use foward slashes instead
    58 IF(MSVC)
    59   SET(ARGUMENT_STARTER "/")
    60 ELSE()
    61   SET(ARGUMENT_STARTER "-")
    62 ENDIF(MSVC)
    6359
    64 # Separates a string of flags. " -" or " /" denotes the start of a flag.
    65 # The same sequence inside double quotation marks is ignored.
    66 # Spaces not within quotes are cleaned meaningfully.
    67 # This macro cannot cope with semicolons in the flag string!
    68 MACRO(SEPARATE_FLAGS _flags _output_variable)
    69   SET(_flags_prep " ${_flags} -")
    70   STRING(REPLACE " " " ;" _flag_chunks ${_flags_prep}) # Max loop iterations
    71   SET(_flag_string)
    72   SET(_parsed_flags)
    73   # Loop is necessary because the regex engine is greedy
    74   FOREACH(_chunk ${_flag_chunks})
    75     SET(_flag_string "${_flag_string}${_chunk}")
    76     # Replace all " -" and " /" inside quotation marks
    77     STRING(REGEX REPLACE "^(([^\"]*\"[^\"]*\")*[^\"]*\"[^\"]*) [/-]([^\"]*\")"
    78            "\\1@39535493@\\3" _flag_string "${_flag_string}")
    79     # Extract one flag if possible
    80     SET(_flag)
    81     STRING(REGEX REPLACE "^.* [/-](.+)( [/-].*$)" "${ARGUMENT_STARTER}\\1" _flag "${_flag_string}")
    82     STRING(REGEX REPLACE "^.* [/-](.+)( [/-].*$)" "\\2"  _flag_string "${_flag_string}")
    83     IF(NOT _flag STREQUAL _flag_string)
    84       LIST(APPEND _parsed_flags "${_flag}")
    85     ENDIF(NOT _flag STREQUAL _flag_string)
    86   ENDFOREACH(_chunk)
     60# Linker flags, additional arguments:
     61# EXE, SHARED, MODULE: Specify a linker mode, default is all three
     62MACRO(SET_LINKER_FLAGS _flags)
     63  _INTERNAL_PARSE_FLAGS_ARGS(SET "EXE;SHARED;MODULE" "_LINKER" "${_flags}" "${ARGN}")
     64ENDMACRO(SET_LINKER_FLAGS)
     65# Add flags (flags don't get added twice)
     66MACRO(ADD_LINKER_FLAGS _flags)
     67  _INTERNAL_PARSE_FLAGS_ARGS(APPEND "EXE;SHARED;MODULE" "_LINKER" "${_flags}" "${ARGN}")
     68ENDMACRO(ADD_LINKER_FLAGS)
     69# Remove flags
     70MACRO(REMOVE_LINKER_FLAGS _flags)
     71  _INTERNAL_PARSE_FLAGS_ARGS(REMOVE_ITEM "EXE;SHARED;MODULE" "_LINKER" "${_flags}" "${ARGN}")
     72ENDMACRO(REMOVE_LINKER_FLAGS)
    8773
    88   # Re-replace all " -" and " /" inside quotation marks
    89   STRING(REGEX REPLACE "@39535493@" " -" ${_output_variable} "${_parsed_flags}")
    90 ENDMACRO(SEPARATE_FLAGS)
    91 
    92 # Internal macro, do not use
    93 # Modifies the flags according to the mode: set, add or remove
    94 # Also sets flags according to the CACHE and FORCE parameter.
    95 # If only CACHE is specified, SET_CACHE() is used.
    96 MACRO(_INTERNAL_PARSE_FLAGS _mode _flags _varname _write_to_cache _force)
    97   SEPARATE_FLAGS("${_flags}" _arg_flag_list)
    98 
    99   IF("${_mode}" STREQUAL "SET")
    100     # SET
    101     SET(_flag_list "${_arg_flag_list}")
    102   ELSE()
    103     # ADD or REMOVE
    104     SEPARATE_FLAGS("${${_varname}}" _flag_list)
    105     FOREACH(_flag ${_arg_flag_list})
    106       LIST(${_mode} _flag_list "${_flag}")
    107     ENDFOREACH(_flag)
    108   ENDIF()
    109 
    110   LIST(REMOVE_DUPLICATES _flag_list)
    111   LIST(SORT _flag_list)
    112   STRING(REPLACE ";" " " _flag_list "${_flag_list}")
    113 
    114   IF(_write_to_cache)
    115     IF(_force)
    116       SET(${_varname} "${_flag_list}" CACHE STRING "${${_varname}}" FORCE)
    117       SET(${_varname} "${_flag_list}" CACHE STRING "${${_varname}}" FORCE)
    118     ELSE()
    119       SET_CACHE(${_varname} STRING "${${_varname}}" "${_flag_list}")
    120     ENDIF()
    121   ELSE()
    122     SET(${_varname} "${_flag_list}")
    123   ENDIF()
    124 ENDMACRO(_INTERNAL_PARSE_FLAGS)
    12574
    12675# Internal macro, do not use
     
    155104      IF(_invert_condition)
    156105        SET(_invert_condition FALSE)
    157     IF(${_arg})
     106        IF(${_arg})
    158107          SET(_arg_cond FALSE)
    159     ELSE()
     108        ELSE()
    160109          SET(_arg_cond TRUE)
    161     ENDIF()
     110       ENDIF()
    162111      ELSE()
    163112        SET(_arg_cond ${${_arg}})
     
    191140
    192141
    193 # Compiler flags, additional arguments:
    194 # C, CXX: Specify a language, default is both
    195 MACRO(SET_COMPILER_FLAGS _flags)
    196   _INTERNAL_PARSE_FLAGS_ARGS(SET "C;CXX" "" "${_flags}" "${ARGN}")
    197 ENDMACRO(SET_COMPILER_FLAGS)
    198 # Add flags (flags don't get added twice)
    199 MACRO(ADD_COMPILER_FLAGS _flags)
    200   _INTERNAL_PARSE_FLAGS_ARGS(APPEND "C;CXX" "" "${_flags}" "${ARGN}")
    201 ENDMACRO(ADD_COMPILER_FLAGS)
    202 # Remove flags
    203 MACRO(REMOVE_COMPILER_FLAGS _flags)
    204   _INTERNAL_PARSE_FLAGS_ARGS(REMOVE_ITEM "C;CXX" "" "${_flags}" "${ARGN}")
    205 ENDMACRO(REMOVE_COMPILER_FLAGS)
     142# Internal macro, do not use
     143# Modifies the flags according to the mode: set, add or remove
     144# Also sets flags according to the CACHE and FORCE parameter.
     145# If only CACHE is specified, SET_CACHE_ADVANCED() is used.
     146MACRO(_INTERNAL_PARSE_FLAGS _mode _flags _varname _write_to_cache _force)
     147  SEPARATE_FLAGS("${_flags}" _arg_flag_list)
    206148
    207 # Linker flags, additional arguments:
    208 # EXE, SHARED, MODULE: Specify a linker mode, default is all three
    209 MACRO(SET_LINKER_FLAGS _flags)
    210   _INTERNAL_PARSE_FLAGS_ARGS(SET "EXE;SHARED;MODULE" "_LINKER" "${_flags}" "${ARGN}")
    211 ENDMACRO(SET_LINKER_FLAGS)
    212 # Add flags (flags don't get added twice)
    213 MACRO(ADD_LINKER_FLAGS _flags)
    214   _INTERNAL_PARSE_FLAGS_ARGS(APPEND "EXE;SHARED;MODULE" "_LINKER" "${_flags}" "${ARGN}")
    215 ENDMACRO(ADD_LINKER_FLAGS)
    216 # Remove flags
    217 MACRO(REMOVE_LINKER_FLAGS _flags)
    218   _INTERNAL_PARSE_FLAGS_ARGS(REMOVE_ITEM "EXE;SHARED;MODULE" "_LINKER" "${_flags}" "${ARGN}")
    219 ENDMACRO(REMOVE_LINKER_FLAGS)
     149  IF("${_mode}" STREQUAL "SET")
     150    # SET
     151    SET(_flag_list "${_arg_flag_list}")
     152  ELSE()
     153    # ADD or REMOVE
     154    SEPARATE_FLAGS("${${_varname}}" _flag_list)
     155    IF(NOT _flag_list)
     156      SET(_flag_list "") # LIST command requires a list in any case
     157    ENDIF()
     158    FOREACH(_flag ${_arg_flag_list})
     159      LIST(${_mode} _flag_list "${_flag}")
     160    ENDFOREACH(_flag)
     161  ENDIF()
     162
     163  LIST(REMOVE_DUPLICATES _flag_list)
     164  LIST(SORT _flag_list)
     165  STRING(REPLACE ";" " " _flag_list "${_flag_list}")
     166
     167  IF(_write_to_cache)
     168    IF(_force)
     169      SET(${_varname} "${_flag_list}" CACHE STRING "${${_varname}}" FORCE)
     170      SET(${_varname} "${_flag_list}" CACHE STRING "${${_varname}}" FORCE)
     171    ELSE()
     172      SET_CACHE_ADVANCED(${_varname} STRING "${${_varname}}" "${_flag_list}")
     173    ENDIF()
     174  ELSE()
     175    SET(${_varname} "${_flag_list}")
     176  ENDIF()
     177ENDMACRO(_INTERNAL_PARSE_FLAGS)
  • code/trunk/cmake/GenerateToluaBindings.cmake

    r2710 r3196  
    4848  )
    4949  SOURCE_GROUP("Tolua" FILES ${_tolua_cxxfile} ${_tolua_hfile})
     50  # Disable annoying GCC warnings
     51  IF(CMAKE_COMPILER_IS_GNU)
     52    SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES COMPILE_FLAGS "-w")
     53  ENDIF()
    5054
    5155  # Create temporary package file
  • code/trunk/cmake/LibraryConfig.cmake

    r2925 r3196  
    6767    INCLUDE(PackageConfigMinGW)
    6868    INCLUDE(PackageConfigMSVC)
    69 
    70     # On Windows, DLLs have to be in the executable folder, install them
    71     IF(DEP_BINARY_DIR AND WIN32)
    72       # When installing a debug version, we really can't know which libraries
    73       # are used in released mode because there might be deps of deps.
    74       INSTALL(
    75         DIRECTORY ${DEP_BINARY_DIR}/
    76         DESTINATION bin
    77         CONFIGURATIONS Debug
    78         REGEX "^.*\\.pdb$" EXCLUDE
    79       )
    80 
    81       # Try to filter out all the debug libraries. If the regex doesn't do the
    82       # job anymore, simply adjust it.
    83       INSTALL(
    84         DIRECTORY ${DEP_BINARY_DIR}/
    85         DESTINATION bin
    86         CONFIGURATIONS Release RelWithDebInfo MinSizeRel
    87         REGEX "_[Dd]\\.[a-zA-Z0-9+-]+$|-mt-gd-|^.*\\.pdb$" EXCLUDE
    88       )
    89     ENDIF(DEP_BINARY_DIR AND WIN32)
    90   ENDIF(NOT DEPENDENCY_PACKAGE_DIR)
     69    INCLUDE(PackageConfig) # For both msvc and mingw
     70  ENDIF()
    9171ENDIF(DEPENDENCY_PACKAGE_ENABLE)
    9272
     
    172152##### Boost #####
    173153# Expand the next statement if newer boost versions than 1.36.1 are released
    174 SET(Boost_ADDITIONAL_VERSIONS 1.37 1.37.0)
     154SET(Boost_ADDITIONAL_VERSIONS 1.37 1.37.0 1.38 1.38.0 1.39 1.39.0)
    175155# MSVC seems to be the only compiler requiring date_time
    176156IF(MSVC)
  • code/trunk/cmake/PackageConfigMSVC.cmake

    r2710 r3196  
    2828IF(MSVC)
    2929
    30   # MAJOR: Interface breaking change somewhere or added a new library
    31   # MINOR: Updated a library to a new version
    32   # PATCH: Bug fix or smaller things
    33   SET(DEPENDENCY_VERSION 0.0.1)
    34 
    35   MESSAGE(STATUS "Using library package for the dependencies.")
    36 
    3730  # 64 bit system?
    3831  IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
     
    4538  STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1"
    4639         _msvc_version "${CMAKE_GENERATOR}")
    47   IF(MSVC71)
    48     SET(_msvc_version "7.1")
    49   ENDIF(MSVC71)
    5040
    5141  SET(DEP_INCLUDE_DIR ${DEPENDENCY_PACKAGE_DIR}/include)
     
    6252  SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR})
    6353
    64   # Include paths and other special treatments
    65   SET(ENV{ALUTDIR}               ${DEP_INCLUDE_DIR}/freealut-1.1.0)
    66   SET(ENV{BOOST_ROOT}            ${DEP_INCLUDE_DIR}/boost-1.37.0)
    67   SET(ENV{CEGUIDIR}              ${DEP_INCLUDE_DIR}/cegui-0.6.2)
    68   SET(ENV{DXSDK_DIR}             ${DEP_INCLUDE_DIR}/directx-2007.aug)
    69   SET(ENV{ENETDIR}               ${DEP_INCLUDE_DIR}/enet-1.2)
    70   SET(ENV{LUA_DIR}               ${DEP_INCLUDE_DIR}/lua-5.1.4)
    71   SET(ENV{OGGDIR}                ${DEP_INCLUDE_DIR}/libogg-1.1.3)
    72   SET(ENV{VORBISDIR}             ${DEP_INCLUDE_DIR}/libvorbis-1.2.0)
    73   SET(ENV{OGRE_HOME}             ${DEP_INCLUDE_DIR}/ogre-1.4.9)
    74   SET(ENV{OGRE_PLUGIN_DIR}       ${DEP_BINARY_DIR})
    75   SET(ENV{OPENALDIR}             ${DEP_INCLUDE_DIR}/openal-1.1)
    76   LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/tcl-8.5.2/include)
    77   SET(TCL_LIBRARY                ${DEP_LIBRARY_DIR}/tcl85.lib CACHE FILEPATH "")
    78   LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/zlib-1.2.3/include)
    79   SET(ZLIB_LIBRARY               ${DEP_LIBRARY_DIR}/zdll.lib CACHE FILEPATH "")
     54  # Certain find scripts don't behave as ecpected to we have
     55  # to specify the libraries ourselves.
     56  SET(TCL_LIBRARY  ${DEP_LIBRARY_DIR}/tcl85.lib CACHE FILEPATH "")
     57  SET(ZLIB_LIBRARY ${DEP_LIBRARY_DIR}/zdll.lib  CACHE FILEPATH "")
     58
     59  # Visual Leak Detector
     60  SET(VLD_INCLUDE_DIR  ${DEP_INCLUDE_DIR}/vld-1.9h CACHE PATH "")
     61  SET(VLD_LIBRARY_DIR  ${DEP_LIBRARY_DIR}          CACHE PATH "")
     62  LINK_DIRECTORIES(${VLD_LIBRARY_DIR}) # Used for auto-linking
     63  MARK_AS_ADVANCED(VLD_INCLUDE_DIR VLD_LIBRARY_DIR)
    8064
    8165ENDIF(MSVC)
  • code/trunk/cmake/PackageConfigMinGW.cmake

    r2710 r3196  
    2828IF(MINGW)
    2929
    30   # MAJOR: Interface breaking change somewhere or added a new library
    31   # MINOR: Updated a library to a new version
    32   # PATCH: Bug fix or smaller things
    33   SET(DEPENDENCY_VERSION 0.0.1)
    34 
    35   MESSAGE(STATUS "Using library package for the dependencies.")
    36 
    3730  # 64 bit system?
    3831  IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
     
    5245  SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR} ${DEP_BINARY_DIR})
    5346
    54   # Include paths and other special treatments
    55   SET(ENV{ALUTDIR}               ${DEP_INCLUDE_DIR}/freealut-1.1.0)
    56   SET(ENV{BOOST_ROOT}            ${DEP_INCLUDE_DIR}/boost-1.37.0)
    57   SET(ENV{CEGUIDIR}              ${DEP_INCLUDE_DIR}/cegui-0.6.2)
    58   SET(ENV{DXSDK_DIR}             ${DEP_INCLUDE_DIR}/directx-2007.aug)
    59   SET(ENV{ENETDIR}               ${DEP_INCLUDE_DIR}/enet-1.2)
    60   SET(ENV{LUA_DIR}               ${DEP_INCLUDE_DIR}/lua-5.1.4)
    61   SET(ENV{OGGDIR}                ${DEP_INCLUDE_DIR}/libogg-1.1.3)
    62   SET(ENV{VORBISDIR}             ${DEP_INCLUDE_DIR}/libvorbis-1.2.0)
    63   SET(ENV{OGRE_HOME}             ${DEP_INCLUDE_DIR}/ogre-1.4.9)
    64   SET(ENV{OGRE_PLUGIN_DIR}       ${DEP_BINARY_DIR})
    65   SET(ENV{OPENALDIR}             ${DEP_INCLUDE_DIR}/openal-1.1)
    66   LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/tcl-8.5.2/include)
    67   SET(TCL_LIBRARY                ${DEP_BINARY_DIR}/tcl85.dll CACHE FILEPATH "")
    68   LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/zlib-1.2.3/include)
    69   SET(ZLIB_LIBRARY               ${DEP_BINARY_DIR}/zlib1.dll CACHE FILEPATH "")
     47  # Certain find scripts don't behave as ecpected to we have
     48  # to specify the libraries ourselves.
     49  SET(TCL_LIBRARY  ${DEP_BINARY_DIR}/tcl85.dll CACHE FILEPATH "")
     50  SET(ZLIB_LIBRARY ${DEP_BINARY_DIR}/zlib1.dll CACHE FILEPATH "")
    7051
    7152ENDIF(MINGW)
Note: See TracChangeset for help on using the changeset viewer.