From d5925dc3cb7c7404cd66a3733381247bc32378b6 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 7 Dec 2012 12:25:49 -0800 Subject: [PATCH] Add dependencies. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdbce902..944d1b3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,8 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tinyformat/tinyformat_test.cpp) COMMAND @echo tinyformat timings: COMMAND @time -p ./tinyformat_speed_test tinyformat > /dev/null COMMAND @echo boost timings: - COMMAND @time -p ./tinyformat_speed_test boost > /dev/null) + COMMAND @time -p ./tinyformat_speed_test boost > /dev/null + DEPENDS tinyformat_speed_test) add_custom_target(bloat_test COMMAND echo running bloat tests... @@ -57,5 +58,6 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tinyformat/tinyformat_test.cpp) COMMAND ./bloat_test.sh -DUSE_TINYFORMAT COMMAND echo boost results: COMMAND ./bloat_test.sh -DUSE_BOOST - WORKING_DIRECTORY tinyformat) + WORKING_DIRECTORY tinyformat + DEPENDS format) endif ()