From 679a842f2a9280b988991ca39ef0e8d416f8106c Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Thu, 11 Jul 2024 16:00:13 +0700 Subject: [PATCH] chore: bump Assertion.cmake to version 1.3.0 (#85) * chore: bump Assertion.cmake to version 1.0.0 * test: utilize `assertion_add_test` to create CMake test --- CMakeLists.txt | 11 +++++------ test/MkdirRecursive.cmake | 3 --- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8189f57..2e56967 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,14 +17,13 @@ if(MY_MKDIR_ENABLE_TESTS) enable_testing() file( - DOWNLOAD https://threeal.github.io/assertion-cmake/v0.3.0 + DOWNLOAD https://github.com/threeal/assertion-cmake/releases/download/v1.0.0/Assertion.cmake ${CMAKE_BINARY_DIR}/Assertion.cmake - EXPECTED_MD5 851f49c10934d715df5d0b59c8b8c72a) + EXPECTED_MD5 1d8ec589d6cc15772581bf77eb3873ff) + include(${CMAKE_BINARY_DIR}/Assertion.cmake) - add_test( - NAME "recursive directory creation" - COMMAND "${CMAKE_COMMAND}" - -P ${CMAKE_CURRENT_SOURCE_DIR}/test/MkdirRecursive.cmake) + assertion_add_test(test/MkdirRecursive.cmake + NAME "recursive directory creation") endif() if(MY_MKDIR_ENABLE_INSTALL) diff --git a/test/MkdirRecursive.cmake b/test/MkdirRecursive.cmake index 16aab78..b9121e8 100644 --- a/test/MkdirRecursive.cmake +++ b/test/MkdirRecursive.cmake @@ -1,7 +1,4 @@ -cmake_minimum_required(VERSION 3.5) - find_package(MyMkdir REQUIRED PATHS ${CMAKE_CURRENT_LIST_DIR}/../cmake) -include(Assertion.cmake) file(REMOVE_RECURSE parent)