mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
CMake: Fix compiling when path contains spaces
This commit is contained in:
parent
f559c6c014
commit
f4c8db78ae
@ -6,12 +6,12 @@ mark_as_advanced(GZIP)
|
|||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
if(HELP2MAN AND GZIP)
|
if(HELP2MAN AND GZIP)
|
||||||
set(H2M_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.supplemental.groff)
|
set(H2M_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.supplemental.groff")
|
||||||
set(MAN_PAGE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1)
|
set(MAN_PAGE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1")
|
||||||
set(MAN_FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1.gz)
|
set(MAN_FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1.gz")
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${MAN_FILE}
|
OUTPUT ${MAN_FILE}
|
||||||
COMMAND ${HELP2MAN} -N -i ${H2M_FILE} -o ${MAN_PAGE} ${PROJECT_BINARY_DIR}/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}
|
COMMAND ${HELP2MAN} -N -i ${H2M_FILE} -o ${MAN_PAGE} "\"${PROJECT_BINARY_DIR}/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}\""
|
||||||
COMMAND ${GZIP} -f -9 ${MAN_PAGE}
|
COMMAND ${GZIP} -f -9 ${MAN_PAGE}
|
||||||
MAIN_DEPENDENCY ${H2M_FILE}
|
MAIN_DEPENDENCY ${H2M_FILE}
|
||||||
COMMENT "Building man page"
|
COMMENT "Building man page"
|
||||||
|
Loading…
Reference in New Issue
Block a user