aboutsummaryrefslogtreecommitdiff
path: root/Win32Depends.cmake
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-29 04:56:56 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-29 04:56:56 +0200
commitdd48af42eb46ce3c8a49895eed18daadfb36b9a5 (patch)
treeb04dcce7d27342b9d913395ac7b9385b60345cf7 /Win32Depends.cmake
parented6d34159e6c58f333d83f6ee514b6bfa90029ce (diff)
downloadlogdiag-dd48af42eb46ce3c8a49895eed18daadfb36b9a5.tar.gz
logdiag-dd48af42eb46ce3c8a49895eed18daadfb36b9a5.tar.xz
logdiag-dd48af42eb46ce3c8a49895eed18daadfb36b9a5.zip
Stop stuttering in CMake scripts
Diffstat (limited to 'Win32Depends.cmake')
-rw-r--r--Win32Depends.cmake16
1 files changed, 8 insertions, 8 deletions
diff --git a/Win32Depends.cmake b/Win32Depends.cmake
index 98d29f6..ec43143 100644
--- a/Win32Depends.cmake
+++ b/Win32Depends.cmake
@@ -15,7 +15,7 @@ file (GLOB files ${working_dir}/*)
list (REMOVE_ITEM files ${pkg_dir})
if (files)
file (REMOVE_RECURSE ${files})
-endif (files)
+endif ()
# Packages
set (pkg_list "geany" "winlibs" "mingw_lua")
@@ -73,16 +73,16 @@ foreach (pkg_set ${pkg_list})
if (status_errno)
file (REMOVE ${filename})
message (FATAL_ERROR "Download failed: ${status_msg}")
- endif (status_errno)
+ endif ()
elseif (pkg_md5_sum)
execute_process (COMMAND ${CMAKE_COMMAND} -E md5sum ${filename}
OUTPUT_VARIABLE output)
if (NOT output MATCHES "^${pkg_md5_sum}")
message (FATAL_ERROR "MD5 mismatch for ${basename}")
- endif (NOT output MATCHES "^${pkg_md5_sum}")
+ endif ()
endif ()
- endforeach (url)
-endforeach (pkg_set)
+ endforeach ()
+endforeach ()
# Stage 2: extract the rest of packages
foreach (pkg_set ${pkg_list})
@@ -97,8 +97,8 @@ foreach (pkg_set ${pkg_list})
if (status)
message (FATAL_ERROR "Extraction failed: ${status}")
endif ()
- endforeach (url)
-endforeach (pkg_set)
+ endforeach ()
+endforeach ()
# Stage 3: final touches
# We have to fix the prefix path as it is completely wrong everywhere
@@ -109,4 +109,4 @@ foreach (file ${files})
string (REGEX REPLACE "prefix=[^\r\n]*(.*)" "prefix=${working_dir}\\1"
file_content_fixed "${file_content}")
file (WRITE ${file} "${file_content_fixed}")
-endforeach (file)
+endforeach ()