Skip to content

Commit 06f025f

Browse files
authored
Merge pull request #15 from GPSnoopy/UnifyShaderMakeDirectory
Unify Win/Linux custom command for shader make directory.
2 parents 1a2469a + 70aa1b7 commit 06f025f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

assets/CMakeLists.txt

-8
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,12 @@ foreach(shader ${shader_files})
1717
set(compiled_shaders ${compiled_shaders} ${output_file})
1818
set(compiled_shaders ${compiled_shaders} PARENT_SCOPE)
1919
set_source_files_properties(${shader} PROPERTIES HEADER_FILE_ONLY TRUE)
20-
if (WIN32)
2120
add_custom_command(
2221
OUTPUT ${output_file}
2322
COMMAND ${CMAKE_COMMAND} -E make_directory ${output_dir}
2423
COMMAND ${Vulkan_GLSLANG_VALIDATOR} -V ${full_path} -o ${output_file}
2524
DEPENDS ${full_path}
2625
)
27-
else()
28-
add_custom_command(
29-
OUTPUT ${output_file}
30-
COMMAND mkdir --parents ${output_dir} && ${Vulkan_GLSLANG_VALIDATOR} -V ${full_path} -o ${output_file}
31-
DEPENDS ${full_path}
32-
)
33-
endif()
3426
endforeach()
3527

3628
macro(copy_assets asset_files dir_name copied_files)

0 commit comments

Comments
 (0)