Revert "fix docs part 2"

This reverts commit 06544a4391.
This commit is contained in:
ConfiG 2024-02-10 06:02:06 +03:00
parent 06544a4391
commit b78bc4629d
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B

View file

@ -366,25 +366,23 @@ endif()
add_subdirectory(test)
# Add install target on CLI >= 2.10.0 (which adds `geode profile path`)
if (DEFINED GEODE_CLI_VERSION)
if (${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "2.10.0")
execute_process(
COMMAND ${GEODE_CLI} profile path -d
OUTPUT_VARIABLE GEODE_PROFILE_GD_PATH
RESULT_VARIABLE GEODE_PROFILE_GD_PATH_RESULT
if (NOT DEFINED GEODE_BUILDING_DOCS AND ${GEODE_CLI_VERSION} VERSION_GREATER_EQUAL "2.10.0")
execute_process(
COMMAND ${GEODE_CLI} profile path -d
OUTPUT_VARIABLE GEODE_PROFILE_GD_PATH
RESULT_VARIABLE GEODE_PROFILE_GD_PATH_RESULT
)
if (${GEODE_PROFILE_GD_PATH_RESULT} EQUAL 0)
string(STRIP ${GEODE_PROFILE_GD_PATH} GEODE_PROFILE_GD_PATH)
install(
TARGETS geode-loader ${LAUNCHER_TARGET}
RUNTIME
DESTINATION "${GEODE_PROFILE_GD_PATH}"
)
file(GLOB RESOURCE_FILES ${GEODE_BIN_PATH}/nightly/resources/*.*)
install(
FILES ${RESOURCE_FILES}
DESTINATION "${GEODE_PROFILE_GD_PATH}/geode/resources/geode.loader"
)
if (${GEODE_PROFILE_GD_PATH_RESULT} EQUAL 0)
string(STRIP ${GEODE_PROFILE_GD_PATH} GEODE_PROFILE_GD_PATH)
install(
TARGETS geode-loader ${LAUNCHER_TARGET}
RUNTIME
DESTINATION "${GEODE_PROFILE_GD_PATH}"
)
file(GLOB RESOURCE_FILES ${GEODE_BIN_PATH}/nightly/resources/*.*)
install(
FILES ${RESOURCE_FILES}
DESTINATION "${GEODE_PROFILE_GD_PATH}/geode/resources/geode.loader"
)
endif()
endif()
endif()
endif()