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 ()