diff options
author | Karl Schultz <karl@lunarg.com> | 2018-06-22 15:14:33 -0600 |
---|---|---|
committer | Karl Schultz <karl@lunarg.com> | 2018-06-25 09:02:15 -0600 |
commit | a80ef66cbafc7520e2864559b0390d2e4ae5a015 (patch) | |
tree | 2d5182978cec094bde47c971c11839e9ff3bb7ad /BUILD.md | |
parent | 93c774e110307f3878b0469ff8b136412622183c (diff) | |
download | vulkan-validation-layers-a80ef66cbafc7520e2864559b0390d2e4ae5a015.tar.gz |
build: Improve googletest handling
Behavior is largely unchanged except that specifying BUILD_TESTS=ON
with googletest not present no longer quietly skips building the tests.
- Make inclusion of external directory unconditional. We may someday
put something there is not related to testing.
- Make default for BUILD_TEST dependent on googletest presence.
- Remove if() around entire contents of tests CMake file.
- Add CMake messaging to clarify googletest activity.
- Throw a CMake error if googletest not present and BUILD_TESTS=ON
Diffstat (limited to 'BUILD.md')
-rw-r--r-- | BUILD.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -141,7 +141,7 @@ on/off options currently supported by this repository: | ------ | -------- | ------- | ----------- | | BUILD_LAYERS | All | `ON` | Controls whether or not the validation layers are built. | | BUILD_LAYER_SUPPORT_FILES | All | `OFF` | Controls whether or not layer support files are built if the layers are not built. | -| BUILD_TESTS | All | `ON` | Controls whether or not the validation layer tests are built. This option is only available when a copy of Google Test is available in the "external" directory. | +| BUILD_TESTS | All | `???` | Controls whether or not the validation layer tests are built. The default is `ON` when the Google Test repository is cloned into the `external` directory. Otherwise, the default is `OFF`. | | INSTALL_TESTS | All | `OFF` | Controls whether or not the validation layer tests are installed. This option is only available when a copy of Google Test is available | BUILD_WSI_XCB_SUPPORT | Linux | `ON` | Build the components with XCB support. | | BUILD_WSI_XLIB_SUPPORT | Linux | `ON` | Build the components with Xlib support. | |