summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ce57701..94f4d2c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,8 +4,10 @@ option(DILIGENT_BUILD_RENDER_SCRIPT "Build render script" ON)
file(RELATIVE_PATH DILIGENT_TOOLS_DIR "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
-if(NOT INSTALL_DILIGENT_TOOLS)
- set(INSTALL_DILIGENT_TOOLS ${INSTALL_DILIGENT_CORE})
+if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS OR PLATFORM_LINUX OR PLATFORM_MACOS OR PLATFORM_IOS)
+ option(INSTALL_DILIGENT_TOOLS "Install DiligentTool module headers and libraries" ON)
+else()
+ set(INSTALL_DILIGENT_TOOLS OFF)
endif()
function(install_tools_lib _TARGET)