Ensure that SPIR-V Headers are always present
authorAlexander Galazin <alexander.galazin@arm.com>
Fri, 20 Jul 2018 10:51:58 +0000 (12:51 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 26 Jul 2018 07:31:29 +0000 (03:31 -0400)
Components: Vulkan, OpenGL, Framework

VK-GL-CTS public issue: 108

Change-Id: I6172080e4c025b6ad671ca9c33e08f6fdf8ded6a

CMakeLists.txt
external/openglcts/README.md
external/vulkancts/README.md

index d88f26b..3caa6d4 100644 (file)
@@ -89,7 +89,11 @@ add_subdirectory(external/glslang)
 add_subdirectory(external/spirv-tools)
 
 # spirv-headers
-include_directories(external/spirv-headers/src/include)
+set(SPIRV_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/external/spirv-headers/src/include")
+if (NOT EXISTS ${SPIRV_INCLUDE_PATH})
+       message(FATAL_ERROR "SPIR-V headers not found, please run external/fetch_sources.py")
+endif()
+include_directories(${SPIRV_INCLUDE_PATH})
 
 include_directories(${PNG_INCLUDE_PATH})
 
index f805c95..7ec07cf 100644 (file)
@@ -212,7 +212,8 @@ add_definitions(-DHKEMBEDDEDFILESYSTEM)
 
 ### Building the Tests
 
-To build the framework, you need first to download sources for zlib, libpng.
+To build the framework, you need first to download sources for zlib, libpng, glslang,
+spirv-headers, and spirv-tools.
 
 To download sources, run:
 
index d42a7f8..16f54e1 100644 (file)
@@ -43,7 +43,7 @@ Building CTS
 ------------
 
 To build dEQP, you need first to download sources for zlib, libpng, glslang,
-and spirv-tools.
+spirv-headers, and spirv-tools.
 
 To download sources, run: