Changeset 8071 for code/branches/kicklib/cmake/LibraryConfig.cmake
- Timestamp:
- Mar 14, 2011, 3:53:38 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
-
code/branches/kicklib/cmake/LibraryConfig.cmake
r8066 r8071 40 40 # On Windows using a package causes way less problems 41 41 SET(_option_msg "Set this to true to use precompiled dependecy archives") 42 IF(WIN32 )42 IF(WIN32 OR APPLE) 43 43 OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" ON) 44 ELSE( WIN32)44 ELSE() 45 45 OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" FALSE) 46 ENDIF( WIN32)46 ENDIF() 47 47 48 48 # Scripts for specific library and CMake config 49 49 INCLUDE(LibraryConfigTardis) 50 INCLUDE(LibraryConfigApple)50 #INCLUDE(LibraryConfigOSX) 51 51 52 52 IF(DEPENDENCY_PACKAGE_ENABLE) … … 75 75 "Disable LIBRARY_USE_PACKAGE if you have none intalled.") 76 76 ELSE() 77 INCLUDE(PackageConfigMinGW) 78 INCLUDE(PackageConfigMSVC) 79 INCLUDE(PackageConfig) # For both msvc and mingw 77 IF(WIN32) 78 INCLUDE(PackageConfigMinGW) 79 INCLUDE(PackageConfigMSVC) 80 INCLUDE(PackageConfig) # For both msvc and mingw 81 ELSEIF(APPLE) 82 INCLUDE(PackageConfigOSX) 83 ENDIF(WIN32) 80 84 ENDIF() 81 85 ENDIF(DEPENDENCY_PACKAGE_ENABLE) … … 152 156 # No auto linking, so this option is useless anyway 153 157 MARK_AS_ADVANCED(Boost_LIB_DIAGNOSTIC_DEFINITIONS) 158 # Complain about incompatibilities 159 IF(GCC_VERSION) 160 COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.4.0" _compare_result) 161 IF(NOT _compare_result LESS 0) 162 IF(${Boost_VERSION} LESS 103700) 163 MESSAGE(STATUS "Warning: Boost versions earlier than 1.37 may not compile with GCC 4.4 or later!") 164 ENDIF() 165 ENDIF() 166 ENDIF() 154 167 155 168
Note: See TracChangeset
for help on using the changeset viewer.