You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows for linking to the static runtime library on Windows.
Updated the minimum CMake version to 3.15 on Windows to support
set(CMAKE_MSVC_RUNTIME_LIBRARY. Other systems now require 3.10 to silence
warnings that newer versions will drop compatibility for a declared minimum
version < 3.10.
Use CONFIG mode for finding boost. Silences warning that in future versions
FindBoost.cmake will be removed. Updated example in README to set Boost_DIR
instead of other paths for FindBoost.cmake.
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Multiple shader files may be compiled into a module. Examples for combining modu
39
39
40
40
The following software is required to build MSL:
41
41
42
-
*[cmake](https://cmake.org/) 3.5 or later
42
+
*[cmake](https://cmake.org/) 3.10 or later
43
43
*[boost](https://www.boost.org/) (required unless only building client library without tests)
44
44
*[Python](https://www.python.org/) 3 or later (required unless only building client library)
45
45
*[glslang](https://github.com/KhronosGroup/glslang) (required for compiler, provided as submodule)
@@ -51,7 +51,7 @@ The following software is required to build MSL:
51
51
52
52
> **Note:** Boost must be built with C++11 support. For example, when building and installing through the b2 bootstrap command: `./b2 "-std=c++11" -j4 install`
53
53
54
-
> **Note:** When Boost is manually installed, the appropriate variables should be set. In the case of Windows, the `BOOST_LIBRARYDIR` and `BOOST_ROOT` variables should be set. (examples: `BOOST_LIBRARYDIR=C:\local\boost_1_64_0\lib64-msvc-14.1` and `BOOST_ROOT=C:\local\boost_1_64_0`) In Windows, the value of `BOOST_LIBRARYDIR` should also be on `PATH` to ensure the DLLs can be loaded.
54
+
> **Note:** When Boost is manually installed, the appropriate variables should be set. In the case of Windows, the `Boost_DIR` variable should be set. (example: `Boost_DIR=C:\local\boost_1_83_0\lib64-msvc-14.1\cmake\Boost-1.83.0`) In Windows, the path to the libraries (e.g. `C:\local\boost_1_83_0\lib64-msvc-14.1`) should be set on `PATH` to ensure the DLLs can be loaded.
55
55
56
56
The glslang, SPIRV-Cross, and SPIRV-Tools submodules can be grabbed by running `git submodule update --init --recursive`.
57
57
@@ -87,6 +87,7 @@ The following options may be used when running cmake:
87
87
*`-DCMAKE_BUILD_TYPE=Debug|Release`: Building in `Debug` or `Release`. This should always be specified.
88
88
*`-DCMAKE_INSTALL_PREFIX=path`: Sets the path to install to when running make install.
89
89
*`-DMSL_SHARED=ON|OFF`: Set to `ON` to build with shared libraries, `OFF` to build with static libraries. Default is `OFF`.
90
+
*`-MSL_STATIC_RUNTIME=ON|OFF`: Set to `ON` to use the static runtime library on Windows. When `OFF`, it will respect the existing value of `CMAKE_MSVC_RUNTIME_LIBRARY`, or use dynamic runtime if otherwise unset. It is not recommended to set this to `ON` when `MSL_SHARED` is also `ON`. Default is `OFF`.
0 commit comments