Skip to content

Commit

Permalink
Add INCLUDES arg to compile_shaders cmake command
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Sep 16, 2021
1 parent 71a0991 commit 0d52171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/compileShaders.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ endif()
function(compile_shader)
set(options "")
set(oneValueArgs SOURCE_FILE OUTPUT_FILE_NAME OUTPUT_FILE_LIST STAGE)
set(multiValueArgs DEFINES)
set(multiValueArgs DEFINES INCLUDES)
cmake_parse_arguments(params "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})

if (NOT params_SOURCE_FILE)
Expand Down Expand Up @@ -74,6 +74,7 @@ function(compile_shader)
-DVKPT_SHADER
-V
${params_DEFINES}
${params_INCLUDES}
"${src_file}"
-o "${out_file}")

Expand Down

0 comments on commit 0d52171

Please sign in to comment.