Skip to content

Commit

Permalink
Fix compile error caused by spv dir not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
yjhgithub authored and hyv1001 committed Apr 11, 2022
1 parent 3a3fa15 commit 6e15619
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/shader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${GENERATED_SHADER_FOLDER})
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${GENERATED_SHADER_FOLDER})
endif()

if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${GENERATED_SHADER_FOLDER}/spv)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${GENERATED_SHADER_FOLDER}/spv)
endif()

include(${PILOT_ROOT_DIR}/cmake/ShaderCompile.cmake)

compile_shader(
Expand Down

0 comments on commit 6e15619

Please sign in to comment.