summaryrefslogtreecommitdiffstats
path: root/BuildUtils.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'BuildUtils.cmake')
-rw-r--r--BuildUtils.cmake6
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()