Skip to content

Commit

Permalink
Fixed VULKAN_SDK_DIR bug in CMake which made this variable useless.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvkennedy committed Aug 7, 2024
1 parent 10fad1a commit 1da9581
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMake/Shader.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function ( add_sfx_shader_project targetName configJsonFile )
MAIN_DEPENDENCY ${in_f}
WORKING_DIRECTORY ${out_folder}
DEPENDS ${PLATFORM_SFX_EXECUTABLE}
COMMENT "${PLATFORM_SFX_EXECUTABLE} ${in_f} ${INCLUDE_OPTS} -O\"${out_folder}\" -P\"${configJsonFile}\" ${EXTRA_OPTS_S}"
)
list(APPEND outputs${targetName} ${out_f})
else()
Expand Down
4 changes: 3 additions & 1 deletion CMake/Variables.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ set_property(CACHE PLATFORM_STD_FILESYSTEM PROPERTY STRINGS 0 1 2)

if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
find_package(Vulkan REQUIRED)
set( VULKAN_SDK_DIR "{Vulkan_INCLUDE_DIR}/.." )
set(vksdk "${Vulkan_INCLUDE_DIR}/..")
cmake_path(ABSOLUTE_PATH vksdk NORMALIZE OUTPUT_VARIABLE VULKAN_SDK_DIR)
message("VULKAN_SDK_DIR = ${VULKAN_SDK_DIR}")
endif()

set( PLATFORM_EMSCRIPTEN_DIR "$ENV{EMSCRIPTEN}" CACHE STRING "Set the location of the Emscripten SDK if compiling for Emscripten." )
Expand Down

0 comments on commit 1da9581

Please sign in to comment.