summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2020-10-05 16:58:04 -0600
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2020-10-06 09:34:24 -0600
commit0456e536c2c315b21b254b46c9fd47a38fd03757 (patch)
treee3e26a212bc0f5d5f73106d05289bf371fd9902a
parent3610ce9fa2d8243a8ffaa58bebca16e0425ef6db (diff)
downloadVulkan-Loader-0456e536c2c315b21b254b46c9fd47a38fd03757.tar.gz
Vulkan-Loader-0456e536c2c315b21b254b46c9fd47a38fd03757.tar.bz2
Vulkan-Loader-0456e536c2c315b21b254b46c9fd47a38fd03757.zip
docs: Update build.md for static build changes
macOS is the only supported platform for a static loader. Changes the build.md and CMakeList.txt to correctly specify the option and warning message. Change-Id: Iaf00e65e60ce5833516b7fe290eed7198436b48b
-rw-r--r--BUILD.md2
-rw-r--r--CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/BUILD.md b/BUILD.md
index c08c198f..0bfc03e6 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -171,9 +171,9 @@ on/off options currently supported by this repository:
| BUILD_WSI_XLIB_SUPPORT | Linux | `ON` | Build the loader with the Xlib entry points enabled. Without this, the X11 headers should not be needed, but the extension `VK_KHR_xlib_surface` won't be available. |
| BUILD_WSI_WAYLAND_SUPPORT | Linux | `ON` | Build the loader with the Wayland entry points enabled. Without this, the Wayland headers should not be needed, but the extension `VK_KHR_wayland_surface` won't be available. |
| BUILD_WSI_DIRECTFB_SUPPORT | Linux | `OFF` | Build the loader with the DirectFB entry points enabled. Without this, the DirectFB headers should not be needed, but the extension `VK_EXT_directfb_surface` won't be available. |
-| ENABLE_STATIC_LOADER | Windows | `OFF` | By default, the loader is built as a dynamic library. This allows it to be built as a static library, instead. |
| ENABLE_WIN10_ONECORE | Windows | `OFF` | Link the loader to the [OneCore](https://msdn.microsoft.com/en-us/library/windows/desktop/mt654039.aspx) umbrella library, instead of the standard Win32 ones. |
| USE_CCACHE | Linux | `OFF` | Enable caching with the CCache program. |
+| BUILD_STATIC_LOADER | macOS | `OFF` | This allows the loader to be built as a static library on macOS. Not tested, use at your own risk. |
The following is a table of all string options currently supported by this repository:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a833a03e..a26e3840 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,7 +43,7 @@ if(APPLE)
endif()
if(BUILD_STATIC_LOADER)
- message(WARNING "The ENABLE_STATIC_LOADER option has been set. Note that this will only work on MacOS and is not supported "
+ message(WARNING "The BUILD_STATIC_LOADER option has been set. Note that this will only work on MacOS and is not supported "
"or tested as part of the loader. Use it at your own risk.")
endif()