improved formatting of '--help' output in a way to be more friendly for help2man

This commit is contained in:
filux
2017-04-01 14:53:34 +02:00
parent f5e09c2a7c
commit ef1c26d931
16 changed files with 479 additions and 455 deletions

View File

@@ -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()