summaryrefslogtreecommitdiff
path: root/cat/test
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2014-10-13 21:55:56 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2014-10-13 22:02:39 +0900
commitc62d30e5fa4339bc0b0ebfaeea3ed21a0a874a8e (patch)
tree8cbe3e1ef40352ea4137c12d9c37de58ec984c8f /cat/test
parentd052eea055efb486776fa41ebafa5a2e4b5e0a19 (diff)
downloadlibarchive-c62d30e5fa4339bc0b0ebfaeea3ed21a0a874a8e.tar.gz
Avoid CMake Warning that used GET_TARGET_PROPERTY with LOCATION property,
so we should use $<TARGET_FILE> expression instead.
Diffstat (limited to 'cat/test')
-rw-r--r--cat/test/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/cat/test/CMakeLists.txt b/cat/test/CMakeLists.txt
index bac00854..0990bcf2 100644
--- a/cat/test/CMakeLists.txt
+++ b/cat/test/CMakeLists.txt
@@ -57,7 +57,8 @@ IF(ENABLE_CAT AND ENABLE_TEST)
# Experimental new test handling
ADD_CUSTOM_TARGET(run_bsdcat_test
- COMMAND bsdcat_test -p ${BSDCAT} -r ${CMAKE_CURRENT_SOURCE_DIR})
+ COMMAND bsdcat_test -p $<TARGET_FILE:bsdcat>
+ -r ${CMAKE_CURRENT_SOURCE_DIR})
ADD_DEPENDENCIES(run_bsdcat_test bsdcat)
ADD_DEPENDENCIES(run_all_tests run_bsdcat_test)