summaryrefslogtreecommitdiff
path: root/tests/gdimagefilledpolygon
diff options
context:
space:
mode:
authorNathanael Jones <nathanael.jones@gmail.com>2014-10-17 11:28:56 -0400
committerNathanael Jones <nathanael.jones@gmail.com>2015-01-07 01:39:10 -0500
commitb52b9c5579f73b3e6370532a6d7c0199deb0ed7d (patch)
treeaf70f143cf0068a3ee31bfc0b2ab0dc711ec7a82 /tests/gdimagefilledpolygon
parente8a1a4699a9ab505012b17e4d7cc9c4cb969b4eb (diff)
downloadlibgd-b52b9c5579f73b3e6370532a6d7c0199deb0ed7d.tar.gz
Upgrade to long-syntax CMAKE add_test command to improve cross-platform compatibility.
Diffstat (limited to 'tests/gdimagefilledpolygon')
-rw-r--r--tests/gdimagefilledpolygon/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/gdimagefilledpolygon/CMakeLists.txt b/tests/gdimagefilledpolygon/CMakeLists.txt
index be8ab7c..2ca4bf5 100644
--- a/tests/gdimagefilledpolygon/CMakeLists.txt
+++ b/tests/gdimagefilledpolygon/CMakeLists.txt
@@ -9,6 +9,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)