Fix include path for vulkan.h
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Thu, 02 Jul 2020 18:08:02 -0400
changeset 1272 cddbd25553fe
parent 1271 5a67d082c55f
child 1273 25384c31f7c5
Fix include path for vulkan.h
CMakeLists.txt
mojoshader_vulkan.c
--- a/CMakeLists.txt	Wed Jul 01 04:29:09 2020 -0400
+++ b/CMakeLists.txt	Thu Jul 02 18:08:02 2020 -0400
@@ -192,7 +192,7 @@
 ENDIF(BUILD_SHARED_LIBS)
 
 TARGET_INCLUDE_DIRECTORIES(mojoshader PUBLIC
-    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Headers/include/vulkan>
+    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Headers/include>
 )
 
 SET_SOURCE_FILES_PROPERTIES(
--- a/mojoshader_vulkan.c	Wed Jul 01 04:29:09 2020 -0400
+++ b/mojoshader_vulkan.c	Thu Jul 02 18:08:02 2020 -0400
@@ -12,7 +12,7 @@
 
 #if SUPPORT_PROFILE_SPIRV
 
-#include "vulkan.h"
+#include "vulkan/vulkan.h"
 
 #define VULKAN_INSTANCE_FUNCTION(ret, func, params) \
     typedef ret (VKAPI_CALL *vkfntype_MOJOSHADER_##func) params;