forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake dxc as subproject fixes (microsoft#6050)
These changes allow us to use DXC as as CMake subproject (via add_subdirectory). Commit comments from each commit: === cmake: allow CMAKE_INSTALL_RPATH to be defined in superproject on APPLE platforms As on Linux, allow CMAKE_INSTALL_RPATH to be defined in a CMake superproject. === cmake: Allow LLVM_ENABLE_ASSERTIONS=OFF to disable assertions in Debug builds Currently, this flag is only used to enable assertions in non-Debug builds, but is not respected in Debug builds. That is, if set to false, Debug builds will still assert. This change fixes that. Note that by default, LLVM_ENABLE_ASSERTIONS is true in Debug builds, so unless it's explicitly set to false, this is a no-op for most people. === cmake: Allow DIRECTX_HEADERS_INCLUDE_DIR to be defined from superproject Useful for when DXC is included as a subdirectory. In Dawn/Chrome, we use our own mirror of DirectX-Headers instead of checking out the repo's submodules, so we need to override this variable.
- Loading branch information
Showing
3 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters