fix: 修复 CMake CheckLinkerFlag 路径问题
Some checks failed
Build and Release Mond / build-and-test (arm64, alpine) (push) Failing after 31s
Build and Release Mond / build-and-test (amd64, alpine) (push) Failing after 36s
Build and Release Mond / build-and-test (amd64, ubuntu) (push) Failing after 1m32s
Build and Release Mond / build-and-test (arm64, ubuntu) (push) Failing after 3m46s
Build and Release Mond / release (push) Has been skipped
Some checks failed
Build and Release Mond / build-and-test (arm64, alpine) (push) Failing after 31s
Build and Release Mond / build-and-test (amd64, alpine) (push) Failing after 36s
Build and Release Mond / build-and-test (amd64, ubuntu) (push) Failing after 1m32s
Build and Release Mond / build-and-test (arm64, ubuntu) (push) Failing after 3m46s
Build and Release Mond / release (push) Has been skipped
- 在 init.sh 中添加对 cmake/CheckLinkerFlag.cmake 的修复
- 将 ${monero_SOURCE_DIR} 替换为 ${CMAKE_SOURCE_DIR}
- 解决 CI 构建中找不到 CheckLinkerFlag.c 的问题
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
3
init.sh
3
init.sh
@@ -8,6 +8,9 @@ sed -i 's/project(monero)/project(mond)/' CMakeLists.txt
|
|||||||
# 2. Modify daemon CMakeLists.txt - Change output binary name
|
# 2. Modify daemon CMakeLists.txt - Change output binary name
|
||||||
sed -i 's/OUTPUT_NAME "monerod"/OUTPUT_NAME "mond"/' src/daemon/CMakeLists.txt
|
sed -i 's/OUTPUT_NAME "monerod"/OUTPUT_NAME "mond"/' src/daemon/CMakeLists.txt
|
||||||
|
|
||||||
|
# 2.5. Modify cmake/CheckLinkerFlag.cmake - Fix source directory variable
|
||||||
|
sed -i 's/\${monero_SOURCE_DIR}/\${CMAKE_SOURCE_DIR}/' cmake/CheckLinkerFlag.cmake
|
||||||
|
|
||||||
# 3. Modify version.cpp.in - Change all MONERO to MOND
|
# 3. Modify version.cpp.in - Change all MONERO to MOND
|
||||||
sed -i 's/DEF_MONERO_VERSION_TAG/DEF_MOND_VERSION_TAG/' src/version.cpp.in
|
sed -i 's/DEF_MONERO_VERSION_TAG/DEF_MOND_VERSION_TAG/' src/version.cpp.in
|
||||||
sed -i 's/DEF_MONERO_VERSION "/DEF_MOND_VERSION "/' src/version.cpp.in
|
sed -i 's/DEF_MONERO_VERSION "/DEF_MOND_VERSION "/' src/version.cpp.in
|
||||||
|
|||||||
Reference in New Issue
Block a user