diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-02-24 19:00:09 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-02-24 19:00:09 +0000 |
| commit | c34e685db2df436f4e740eba89bb8876f2e2cb5f (patch) | |
| tree | 29a9196441505f588d3d4c20b52fa86faedaecab | |
| parent | Removed Errors.h from engine factory headers to dependency on NativePlatform (diff) | |
| download | DiligentCore-c34e685db2df436f4e740eba89bb8876f2e2cb5f.tar.gz DiligentCore-c34e685db2df436f4e740eba89bb8876f2e2cb5f.zip | |
Minor update to BuildUtils.cmake: not copyng GraphicsEngineD3D12.dll when D3D12 is not supported
| -rw-r--r-- | BuildUtils.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/BuildUtils.cmake b/BuildUtils.cmake index 4b35fee7..f094dc06 100644 --- a/BuildUtils.cmake +++ b/BuildUtils.cmake @@ -3,9 +3,11 @@ if(PLATFORM_WIN32 OR PLATFORM_UNVIRSAL_WINDOWS) function(copy_required_dlls TARGET_NAME) set(ENGINE_DLLS GraphicsEngineD3D11-shared - GraphicsEngineD3D12-shared ) - if(PLATFORM_WIN32) + if(D3D12_SUPPORTED) + list(APPEND ENGINE_DLLS GraphicsEngineD3D12-shared ) + endif() + if(GL_SUPPORTED) list(APPEND ENGINE_DLLS GraphicsEngineOpenGL-shared) endif() |
