aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2014-11-01 15:26:41 +0000
committerMarco Poletti <poletti.marco@gmail.com>2014-11-01 15:26:45 +0000
commita10ad119a0b40162044122b526ae6afd789af45b (patch)
tree0b573c2f1351c58cba6e9d92efa9b818df8ad83f /examples
parente0e2ac332d8612bac7ee5050e009c73acb1072b5 (diff)
downloadgoogle-fruit-a10ad119a0b40162044122b526ae6afd789af45b.tar.gz
Now the compile time test is run with both Release-like and Debug-like compiler flags.
Diffstat (limited to 'examples')
-rw-r--r--examples/compile_time_benchmark/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/compile_time_benchmark/CMakeLists.txt b/examples/compile_time_benchmark/CMakeLists.txt
index 2c624dd..9ecea3b 100644
--- a/examples/compile_time_benchmark/CMakeLists.txt
+++ b/examples/compile_time_benchmark/CMakeLists.txt
@@ -1,3 +1,7 @@
add_custom_target(compile_time_benchmark
- COMMAND time ${CMAKE_CXX_COMPILER} -std=c++11 -O2 -g -W -Wall -Werror -DNDEBUG -ftemplate-depth=1000 -I${CMAKE_CURRENT_SOURCE_DIR}/../../include -c ${CMAKE_CURRENT_SOURCE_DIR}/module.cpp -o module.o)
+ COMMAND echo Release
+ COMMAND time ${CMAKE_CXX_COMPILER} -std=c++11 -O2 -W -Wall -Werror -DNDEBUG -ftemplate-depth=1000 -I${CMAKE_CURRENT_SOURCE_DIR}/../../include -c ${CMAKE_CURRENT_SOURCE_DIR}/module.cpp -o module.o
+ COMMAND echo Debug
+ COMMAND time ${CMAKE_CXX_COMPILER} -std=c++11 -Os -g -W -Wall -Werror -ftemplate-depth=1000 -I${CMAKE_CURRENT_SOURCE_DIR}/../../include -c ${CMAKE_CURRENT_SOURCE_DIR}/module.cpp -o module.o
+ )