mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 11:41:46 +02:00
improved formatting of '--help' output in a way to be more friendly for help2man
This commit is contained in:
@@ -26,13 +26,17 @@ IF(WANT_STATIC_LIBS)
|
||||
LIST(APPEND LIST_OF_STATIC_LIBS_MG "${STATIC_LIB}")
|
||||
ENDFOREACH()
|
||||
ENDIF()
|
||||
IF(WANT_STATIC_WX_LIBS AND (BUILD_MEGAGLEST_MODEL_VIEWER OR BUILD_MEGAGLEST_MAP_EDITOR OR BUILD_MEGAGLEST))
|
||||
MESSAGE(STATUS "==========> wxWidgets looking for STATIC libs.")
|
||||
IF(BUILD_MEGAGLEST_MODEL_VIEWER OR BUILD_MEGAGLEST_MAP_EDITOR)
|
||||
# wxWidgets for tools
|
||||
FOREACH(STATIC_LIB
|
||||
wxWidgets)
|
||||
LIST(APPEND LIST_OF_STATIC_LIBS_MG "${STATIC_LIB}")
|
||||
ENDFOREACH()
|
||||
|
||||
IF(NOT DEFINED STATIC_wxWidgets)
|
||||
SET(STATIC_wxWidgets OFF)
|
||||
# wxWidgets by default are not available static
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF(BUILD_MEGAGLEST)
|
||||
# only libs not used by shared lib
|
||||
@@ -47,7 +51,12 @@ IF(WANT_STATIC_LIBS)
|
||||
UNSET(STATIC_${STATIC_LIB} CACHE)
|
||||
ENDIF()
|
||||
ELSE()
|
||||
OPTION("STATIC_${STATIC_LIB}" "Set to ON to link your project with static library (instead of DLL)." ON)
|
||||
IF(DEFINED STATIC_${STATIC_LIB} AND NOT STATIC_${STATIC_LIB})
|
||||
SET(STATIC_OPTION_VALUE OFF)
|
||||
ELSE()
|
||||
SET(STATIC_OPTION_VALUE ON)
|
||||
ENDIF()
|
||||
OPTION("STATIC_${STATIC_LIB}" "Set to ON to link your project with static ${STATIC_LIB} library (instead of DLL)." "${STATIC_OPTION_VALUE}")
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
ENDIF()
|
||||
|
Reference in New Issue
Block a user