File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
cmake-init/templates/common/cmake Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -12,26 +12,29 @@ set(src "${PROJECT_SOURCE_DIR}")
1212
1313set (mcss_SOURCE_DIR "${bin} /docs/.ci" )
1414if (NOT IS_DIRECTORY "${mcss_SOURCE_DIR} " )
15- file (MAKE_DIRECTORY "${mcss_SOURCE_DIR} " )
15+ file (MAKE_DIRECTORY "${mcss_SOURCE_DIR} _ " )
1616 file (
1717 DOWNLOAD
18- https://github.com/friendlyanon /m.css/releases/download/release-1/mcss .zip
19- "${mcss_SOURCE_DIR } /mcss.zip"
18+ https://github.com/mosra /m.css/archive/4a1324c22ebaf81d68e8745610b0127288358b8c .zip
19+ "${bin } /mcss.zip"
2020 STATUS status
21- EXPECTED_MD5 00cd2757ebafb9bcba7f5d399b3bec7f
21+ EXPECTED_MD5 e1b1d45b861b718299eeb91f8badfc6f
2222 )
2323 if (NOT status MATCHES "^0;" )
2424 message (FATAL_ERROR "Download failed with ${status} " )
2525 endif ()
2626 execute_process (
27- COMMAND "${CMAKE_COMMAND} " -E tar xf mcss.zip
28- WORKING_DIRECTORY "${mcss_SOURCE_DIR} "
27+ COMMAND "${CMAKE_COMMAND} " -E tar xf " ${bin} / mcss.zip"
28+ WORKING_DIRECTORY "${mcss_SOURCE_DIR} _ "
2929 RESULT_VARIABLE result
3030 )
3131 if (NOT result EQUAL "0" )
3232 message (FATAL_ERROR "Extraction failed with ${result} " )
3333 endif ()
34- file (REMOVE "${mcss_SOURCE_DIR} /mcss.zip" )
34+ file (REMOVE "${bin} /mcss.zip" )
35+ file (GLOB dir LIST_DIRECTORIES ON "${mcss_SOURCE_DIR} _/*" )
36+ file (RENAME "${dir} " "${mcss_SOURCE_DIR} " )
37+ file (REMOVE "${mcss_SOURCE_DIR} _" )
3538endif ()
3639
3740find_program (Python3_EXECUTABLE NAMES python3 python)
You can’t perform that action at this time.
0 commit comments