Skip to content

Commit 802d1de

Browse files
CMake: check that DiligentCore module is found
1 parent f8cc33e commit 802d1de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
cmake_minimum_required (VERSION 3.10)
22

3+
if(NOT DILIGENT_CORE_FOUND)
4+
message(FATAL_ERROR "DiligentCore module is not found. Please add DiligentCore module to the project before DiligentTools module.")
5+
endif()
6+
7+
set(DILIGENT_TOOLS_FOUND TRUE CACHE INTERNAL "DiligentTools module is found")
8+
39
file(RELATIVE_PATH DILIGENT_TOOLS_DIR "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
410

511
if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS OR PLATFORM_LINUX OR PLATFORM_MACOS OR PLATFORM_IOS OR PLATFORM_TVOS OR PLATFORM_WEB)

0 commit comments

Comments
 (0)