|
@@ -14,7 +14,7 @@ cmake_minimum_required(VERSION 2.8)
|
14
|
14
|
# cmake -G"Unix Makefiles" .. #
|
15
|
15
|
# make #
|
16
|
16
|
#====================================================================#
|
17
|
|
-
|
|
17
|
+
|
18
|
18
|
#====================================================================#
|
19
|
19
|
# Download marlin-cmake scriptfiles if not already installed #
|
20
|
20
|
# and add the path to the module path #
|
|
@@ -26,13 +26,13 @@ if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake)
|
26
|
26
|
|
27
|
27
|
file(DOWNLOAD https://github.com/tohara/marlin-cmake/archive/${SCRIPT_BRANCH}.tar.gz
|
28
|
28
|
${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz SHOW_PROGRESS)
|
29
|
|
-
|
|
29
|
+
|
30
|
30
|
execute_process(COMMAND ${CMAKE_COMMAND} -E tar -xvf ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
|
31
|
|
-
|
|
31
|
+
|
32
|
32
|
file(RENAME ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-${SCRIPT_BRANCH} ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake)
|
33
|
33
|
file(REMOVE ${CMAKE_CURRENT_LIST_DIR}/marlin-cmake-src.tar.gz)
|
34
|
|
-
|
35
|
|
-
|
|
34
|
+
|
|
35
|
+
|
36
|
36
|
endif()
|
37
|
37
|
|
38
|
38
|
if(WIN32 AND NOT EXISTS ${CMAKE_BINARY_DIR}/make.exe)
|