diff options
author | Nathanael Jones <nathanael.jones@gmail.com> | 2014-10-17 11:28:56 -0400 |
---|---|---|
committer | Nathanael Jones <nathanael.jones@gmail.com> | 2015-01-07 01:39:10 -0500 |
commit | b52b9c5579f73b3e6370532a6d7c0199deb0ed7d (patch) | |
tree | af70f143cf0068a3ee31bfc0b2ab0dc711ec7a82 /tests/gdimagecolordeallocate | |
parent | e8a1a4699a9ab505012b17e4d7cc9c4cb969b4eb (diff) | |
download | libgd-b52b9c5579f73b3e6370532a6d7c0199deb0ed7d.tar.gz |
Upgrade to long-syntax CMAKE add_test command to improve cross-platform compatibility.
Diffstat (limited to 'tests/gdimagecolordeallocate')
-rw-r--r-- | tests/gdimagecolordeallocate/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/gdimagecolordeallocate/CMakeLists.txt b/tests/gdimagecolordeallocate/CMakeLists.txt index 996bd24..7958cd6 100644 --- a/tests/gdimagecolordeallocate/CMakeLists.txt +++ b/tests/gdimagecolordeallocate/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) |