mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 19:51:44 +02:00
- bugfix for cmake builds handling of help2man for empty executable paths
This commit is contained in:
@@ -136,7 +136,7 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER)
|
||||
|
||||
SET(HELP2MAN_OUT_PATH ${EXECUTABLE_OUTPUT_PATH})
|
||||
IF("${EXECUTABLE_OUTPUT_PATH}" STREQUAL "")
|
||||
SET(HELP2MAN_OUT_PATH "./")
|
||||
SET(HELP2MAN_OUT_PATH "${CMAKE_CURRENT_BINARY_DIR}/")
|
||||
ENDIF()
|
||||
|
||||
MESSAGE(STATUS "***Note: The final output path for Megaglest G3d Viewer will be [${HELP2MAN_OUT_PATH}]")
|
||||
@@ -188,7 +188,7 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER)
|
||||
|
||||
# Installation of the program manpage file
|
||||
INSTALL(FILES
|
||||
"${EXECUTABLE_OUTPUT_PATH}${TARGET_NAME_MANPAGE}"
|
||||
"${HELP2MAN_OUT_PATH}${TARGET_NAME_MANPAGE}"
|
||||
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
|
||||
ENDIF()
|
||||
|
||||
|
@@ -258,7 +258,7 @@ IF(BUILD_MEGAGLEST)
|
||||
|
||||
SET(HELP2MAN_OUT_PATH ${EXECUTABLE_OUTPUT_PATH})
|
||||
IF("${EXECUTABLE_OUTPUT_PATH}" STREQUAL "")
|
||||
SET(HELP2MAN_OUT_PATH "./")
|
||||
SET(HELP2MAN_OUT_PATH "${CMAKE_CURRENT_BINARY_DIR}/")
|
||||
ENDIF()
|
||||
|
||||
IF(EXISTS ${HELP2MAN})
|
||||
@@ -293,7 +293,7 @@ IF(BUILD_MEGAGLEST)
|
||||
|
||||
# Installation of the program manpage file
|
||||
INSTALL(FILES
|
||||
"${EXECUTABLE_OUTPUT_PATH}${TARGET_NAME_MANPAGE}"
|
||||
"${HELP2MAN_OUT_PATH}${TARGET_NAME_MANPAGE}"
|
||||
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
|
||||
ENDIF()
|
||||
|
||||
|
@@ -122,7 +122,7 @@ IF(BUILD_MEGAGLEST_MAP_EDITOR)
|
||||
|
||||
SET(HELP2MAN_OUT_PATH ${EXECUTABLE_OUTPUT_PATH})
|
||||
IF("${EXECUTABLE_OUTPUT_PATH}" STREQUAL "")
|
||||
SET(HELP2MAN_OUT_PATH "./")
|
||||
SET(HELP2MAN_OUT_PATH "${CMAKE_CURRENT_BINARY_DIR}/")
|
||||
ENDIF()
|
||||
|
||||
MESSAGE(STATUS "***Note: The final output path for Megaglest Map Editor will be [${HELP2MAN_OUT_PATH}]")
|
||||
@@ -184,7 +184,7 @@ IF(BUILD_MEGAGLEST_MAP_EDITOR)
|
||||
|
||||
# Installation of the program manpage file
|
||||
INSTALL(FILES
|
||||
"${EXECUTABLE_OUTPUT_PATH}{TARGET_NAME_MANPAGE}"
|
||||
"${HELP2MAN_OUT_PATH}${TARGET_NAME_MANPAGE}"
|
||||
DESTINATION ${MEGAGLEST_MANPAGE_INSTALL_PATH})
|
||||
ENDIF()
|
||||
|
||||
|
Reference in New Issue
Block a user