mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
* add unit tests * determine package version from git tag. closes #54. * update readme * bugfix * update example * update gitignore
11 lines
266 B
CMake
11 lines
266 B
CMake
|
|
function(ASSERT_EQUAL)
|
|
if (NOT ARGC EQUAL 2)
|
|
message(FATAL_ERROR "assertion failed: invalid argument count: ${ARGC}")
|
|
endif()
|
|
|
|
if (NOT ${ARGV0} EQUAL ${ARGV1})
|
|
message(FATAL_ERROR "assertion failed: '${ARGV0}' != '${ARGV1}'")
|
|
endif()
|
|
endfunction()
|