Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Bogoychev <nheart@gmail.com>2020-01-27 15:10:18 +0300
committerNikolay Bogoychev <nheart@gmail.com>2020-01-27 15:10:18 +0300
commitb3311f5f6342a6406379b2e8fbae5bebd279ad7c (patch)
treeec5bb4fd418078fb95d52565b0e86e145ddf5193
parent19ab51e88c64a7385ad9c2759fd201eef3930026 (diff)
Add an option to not compile tests
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 31e5ff4..4efe533 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/intgemm_config.h.in ${CMAKE_CURRENT_B
include_directories(${CMAKE_CURRENT_BINARY_DIR})
+if(INTGEMM_DONT_BUILD_TESTS)
+ return()
+endif()
+
foreach(exe benchmark biasmultiply)
add_executable(${exe} benchmarks/${exe}.cc intgemm.cc)
endforeach()