diff options
author | Vegard Sjonfjell <vegard@yahoo-inc.com> | 2016-06-16 14:18:24 +0200 |
---|---|---|
committer | Vegard Sjonfjell <vegard@yahoo-inc.com> | 2016-06-16 14:18:24 +0200 |
commit | 63f4017a6f42955a182f0a1a33cfe6449b090704 (patch) | |
tree | cf1589da036146f924847a5d6bb2aa0a785da75a /build_settings.cmake | |
parent | a46f6dcc87f07996fbd32ecc07b4253bd563b840 (diff) |
Do not build tests as part of all target if EXCLUDE_TESTS_FROM_ALL is set
Diffstat (limited to 'build_settings.cmake')
-rw-r--r-- | build_settings.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build_settings.cmake b/build_settings.cmake index 7898ccf00fc..59f73dc3e70 100644 --- a/build_settings.cmake +++ b/build_settings.cmake @@ -3,6 +3,9 @@ if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin") set(OS_IS_MACOSX true) endif() +# Build options +# Whether to build unit tests as part of the 'all' target +set(EXCLUDE_TESTS_FROM_ALL FALSE CACHE BOOL "If TRUE, do not build tests as part of the 'all' target") # Warnings set(WARN_OPTS "-Wuninitialized -Werror -Wall -W -Wchar-subscripts -Wcomment -Wformat -Wparentheses -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings") |