summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-27 16:03:17 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-04-27 16:03:17 (GMT)
commitb2bddc9f0d81d79cc3839f20ad5475ffcb393876 (patch)
tree08b5592ef343ce66354965bcfc70bbf5ecdb98a8 /Tests
parent5a5cd54730b586de1b2b769c2e2f32850acf0258 (diff)
downloadCMake-b2bddc9f0d81d79cc3839f20ad5475ffcb393876.zip
CMake-b2bddc9f0d81d79cc3839f20ad5475ffcb393876.tar.gz
CMake-b2bddc9f0d81d79cc3839f20ad5475ffcb393876.tar.bz2
ENH: Add LOCATION to GET_TARGET_PROPERTY. Closes Bug #34 - Add to GET_TARGET_PROPERTY location of target
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index fda4969..5446451 100644
--- a/Tests/CustomCommand/CMakeLists.txt
+++ b/Tests/CustomCommand/CMakeLists.txt
@@ -22,12 +22,15 @@ 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}")
+
# the folowing assumes that a cmSourceFile
# is instantiated for the output, with GENERATED 1
# at the end of the day this becomes a what in VS ?
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/generated.c
DEPENDS generator
- COMMAND ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/generator
+ COMMAND ${generator_PATH}
ARGS ${PROJECT_BINARY_DIR}/generated.c
)