From 0f8f82a3cf639233c69c893c102a82b6e11ae98e Mon Sep 17 00:00:00 2001 From: "zugz (tox)" Date: Sat, 8 Dec 2018 12:32:32 +0100 Subject: Add cmake option for building additional tests Closes #1262 --- cmake/StrictAbi.cmake | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'cmake') diff --git a/cmake/StrictAbi.cmake b/cmake/StrictAbi.cmake index 5a646d77..2dc5c5e0 100644 --- a/cmake/StrictAbi.cmake +++ b/cmake/StrictAbi.cmake @@ -52,3 +52,25 @@ if(WIN32 OR APPLE) # Windows and OSX don't have this linker functionality. set(STRICT_ABI OFF) endif() + +if(STRICT_ABI) + if(AUTOTEST) + message("AUTOTEST option is incompatible with STRICT_ABI. Disabling AUTOTEST.") + endif() + set(AUTOTEST OFF) + + if(BUILD_MISC_TESTS) + message("BUILD_MISC_TESTS option is incompatible with STRICT_ABI. Disabling BUILD_MISC_TESTS.") + endif() + set(BUILD_MISC_TESTS OFF) + + if(BOOTSTRAP_DAEMON) + message("BOOTSTRAP_DAEMON option is incompatible with STRICT_ABI. Disabling BOOTSTRAP_DAEMON.") + endif() + set(BOOTSTRAP_DAEMON OFF) + + if(DHT_BOOTSTRAP) + message("DHT_BOOTSTRAP option is incompatible with STRICT_ABI. Disabling DHT_BOOTSTRAP.") + endif() + set(DHT_BOOTSTRAP OFF) +endif() -- cgit v1.2.3