diff options
author | zugz (tox) <mbays+tox@sdf.org> | 2018-12-08 12:32:32 +0100 |
---|---|---|
committer | zugz (tox) <mbays+tox@sdf.org> | 2018-12-11 21:49:34 +0100 |
commit | 0f8f82a3cf639233c69c893c102a82b6e11ae98e (patch) | |
tree | 8742fec5f6b8d67c755e090fc48cdaa65249c177 /cmake | |
parent | 9770880e975a09635a461c46c8fcc193bce57004 (diff) |
Add cmake option for building additional tests
Closes #1262
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/StrictAbi.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
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) | |||
52 | # Windows and OSX don't have this linker functionality. | 52 | # Windows and OSX don't have this linker functionality. |
53 | set(STRICT_ABI OFF) | 53 | set(STRICT_ABI OFF) |
54 | endif() | 54 | endif() |
55 | |||
56 | if(STRICT_ABI) | ||
57 | if(AUTOTEST) | ||
58 | message("AUTOTEST option is incompatible with STRICT_ABI. Disabling AUTOTEST.") | ||
59 | endif() | ||
60 | set(AUTOTEST OFF) | ||
61 | |||
62 | if(BUILD_MISC_TESTS) | ||
63 | message("BUILD_MISC_TESTS option is incompatible with STRICT_ABI. Disabling BUILD_MISC_TESTS.") | ||
64 | endif() | ||
65 | set(BUILD_MISC_TESTS OFF) | ||
66 | |||
67 | if(BOOTSTRAP_DAEMON) | ||
68 | message("BOOTSTRAP_DAEMON option is incompatible with STRICT_ABI. Disabling BOOTSTRAP_DAEMON.") | ||
69 | endif() | ||
70 | set(BOOTSTRAP_DAEMON OFF) | ||
71 | |||
72 | if(DHT_BOOTSTRAP) | ||
73 | message("DHT_BOOTSTRAP option is incompatible with STRICT_ABI. Disabling DHT_BOOTSTRAP.") | ||
74 | endif() | ||
75 | set(DHT_BOOTSTRAP OFF) | ||
76 | endif() | ||