mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
111bb67c14
Use the namespace org.cmake instead of org.sphinx.cmake. Add the version to the output file name.
33 lines
781 B
CMake
33 lines
781 B
CMake
|
|
file(READ "${QTHELP_DIR}/CMake.qhcp" QHCP_CONTENT)
|
|
|
|
string(REPLACE
|
|
"<homePage>qthelp://org.sphinx.cmake" "<homePage>qthelp://org.cmake"
|
|
QHCP_CONTENT "${QHCP_CONTENT}"
|
|
)
|
|
string(REPLACE
|
|
"<startPage>qthelp://org.sphinx.cmake" "<startPage>qthelp://org.cmake"
|
|
QHCP_CONTENT "${QHCP_CONTENT}"
|
|
)
|
|
|
|
string(REPLACE
|
|
"<output>CMake.qch" "<output>CMake-${CMake_VERSION}.qch"
|
|
QHCP_CONTENT "${QHCP_CONTENT}"
|
|
)
|
|
string(REPLACE
|
|
"<file>CMake.qch" "<file>CMake-${CMake_VERSION}.qch"
|
|
QHCP_CONTENT "${QHCP_CONTENT}"
|
|
)
|
|
|
|
file(WRITE "${QTHELP_DIR}/CMake.qhcp" "${QHCP_CONTENT}")
|
|
|
|
|
|
file(READ "${QTHELP_DIR}/CMake.qhp" QHP_CONTENT)
|
|
|
|
string(REPLACE
|
|
"<namespace>org.sphinx.cmake" "<namespace>org.cmake"
|
|
QHP_CONTENT "${QHP_CONTENT}"
|
|
)
|
|
|
|
file(WRITE "${QTHELP_DIR}/CMake.qhp" "${QHP_CONTENT}")
|