summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommand
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-18 16:49:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-19 17:07:27 (GMT)
commita247911a88058ec2f814df5c1620b0be5a1065a8 (patch)
tree891fe0738914fc451345fcfe5ec96f4af9c7f813 /Tests/CustomCommand
parentcffcdd83315c0ea10df4c5439209ccdfa6bc7160 (diff)
downloadCMake-a247911a88058ec2f814df5c1620b0be5a1065a8.zip
CMake-a247911a88058ec2f814df5c1620b0be5a1065a8.tar.gz
CMake-a247911a88058ec2f814df5c1620b0be5a1065a8.tar.bz2
Tests: Don't read the LOCATION property from build targets.
Diffstat (limited to 'Tests/CustomCommand')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index 2408141..bbae387 100644
--- a/Tests/CustomCommand/CMakeLists.txt
+++ b/Tests/CustomCommand/CMakeLists.txt
@@ -29,9 +29,6 @@ set (EXECUTABLE_OUTPUT_PATH
# add the executable that will generate the file
add_executable(generator generator.cxx)
-get_target_property(generator_PATH generator LOCATION)
-message("Location ${generator_PATH}")
-
################################################################
#
# Test using a wrapper to wrap a header file
@@ -189,7 +186,7 @@ add_executable(CustomCommand
# generated source in a target.
add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/generated.c
DEPENDS generator
- COMMAND ${generator_PATH}
+ COMMAND generator
ARGS ${PROJECT_BINARY_DIR}/generated.c
)