Skip to content

Commit

Permalink
chore: bump Assertion.cmake to version 1.3.0 (#85)
Browse files Browse the repository at this point in the history
* chore: bump Assertion.cmake to version 1.0.0

* test: utilize `assertion_add_test` to create CMake test
  • Loading branch information
threeal authored Jul 11, 2024
1 parent ba48341 commit 679a842
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
11 changes: 5 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions test/MkdirRecursive.cmake
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 679a842

Please sign in to comment.