aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-01-30 19:48:02 +0000
committerthecharlesblake2018-01-30 19:48:02 +0000
commit7ae2eda8fed387c82edd1bce59c19bf38666fe0b (patch)
treea95edb84ac25dd91ef001c91cdd901ff40735dea
parentUpdate build instrs with better profiling guide (diff)
downloadmetasol-7ae2eda8fed387c82edd1bce59c19bf38666fe0b.tar.gz
metasol-7ae2eda8fed387c82edd1bce59c19bf38666fe0b.zip

Add ORDER_ON_CACHE flag to CMake script

-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0c9f2e..3477339 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -137,6 +137,11 @@ add_executable(solvitaire-simple-hash ${main} ${sources})
target_link_libraries(solvitaire-simple-hash LINK_PUBLIC ${Boost_LIBRARIES} -lprofiler)
set_target_properties(solvitaire-simple-hash PROPERTIES COMPILE_FLAGS -DSIMPLE_HASH)
+# add a separete executable for the 'order on cache' version of the solver
+add_executable(solvitaire-order-on-cache ${main} ${sources})
+target_link_libraries(solvitaire-order-on-cache LINK_PUBLIC ${Boost_LIBRARIES} -lprofiler)
+set_target_properties(solvitaire-order-on-cache PROPERTIES COMPILE_FLAGS -DORDER_ON_CACHE)
+
###############################################################################
## testing ####################################################################