mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 06:01:17 +02:00
- cmake now dynamically detects some versions of miniupnpc
This commit is contained in:
@@ -204,18 +204,6 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER OR BUILD_MEGAGLEST_MAP_EDITOR OR BUILD_MEGAGLEST
|
||||
#set (FTGL_LINK_TARGETS )
|
||||
ENDIF(USE_FTGL)
|
||||
|
||||
IF(MINIUPNPC_VERSION_PRE1_5)
|
||||
ADD_DEFINITIONS(-DMINIUPNPC_VERSION_PRE1_5)
|
||||
message(STATUS "Adding macro for miniupnpc version: pre v1.5")
|
||||
ENDIF()
|
||||
IF(MINIUPNPC_VERSION_PRE1_6)
|
||||
ADD_DEFINITIONS(-DMINIUPNPC_VERSION_PRE1_6)
|
||||
message(STATUS "Adding macro for miniupnpc version: pre v1.6")
|
||||
ENDIF()
|
||||
IF(NOT MINIUPNPC_VERSION_PRE1_5 AND NOT MINIUPNPC_VERSION_PRE1_6)
|
||||
message(STATUS "**No macro's required for miniupnpc version")
|
||||
ENDIF()
|
||||
|
||||
OPTION(USE_FREETYPEGL "Use Freetype-GL for on-screen fonts" OFF)
|
||||
if(USE_FREETYPEGL)
|
||||
ADD_DEFINITIONS(-DUSE_FREETYPEGL)
|
||||
@@ -296,6 +284,18 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER OR BUILD_MEGAGLEST_MAP_EDITOR OR BUILD_MEGAGLEST
|
||||
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${MINIUPNP_LIBRARY})
|
||||
endif()
|
||||
|
||||
IF(MINIUPNPC_VERSION_PRE1_5)
|
||||
ADD_DEFINITIONS(-DMINIUPNPC_VERSION_PRE1_5)
|
||||
message(STATUS "Adding macro for miniupnpc version: pre v1.5")
|
||||
ENDIF()
|
||||
IF(MINIUPNPC_VERSION_PRE1_6)
|
||||
ADD_DEFINITIONS(-DMINIUPNPC_VERSION_PRE1_6)
|
||||
message(STATUS "Adding macro for miniupnpc version: pre v1.6")
|
||||
ENDIF()
|
||||
IF(NOT MINIUPNPC_VERSION_PRE1_5 AND NOT MINIUPNPC_VERSION_PRE1_6)
|
||||
message(STATUS "**No macro's required for miniupnpc version")
|
||||
ENDIF()
|
||||
|
||||
IF(APPLE)
|
||||
SET(DIRS_WITH_SRC ${DIRS_WITH_SRC} platform/sdl)
|
||||
SET(DIRS_WITH_SRC ${DIRS_WITH_SRC} platform/posix)
|
||||
|
Reference in New Issue
Block a user