Skip to content

Commit

Permalink
Make the shader regex even better;
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbytes committed Feb 12, 2025
1 parent c3dd6d2 commit 161856b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ if(LOVR_ENABLE_GRAPHICS)
set(LOVR_GLSL "${CMAKE_CURRENT_SOURCE_DIR}/etc/shaders/lovr.glsl")
file(GLOB shader_files "etc/shaders/*.${ARGV0}")
foreach(shader_file ${shader_files})
string(REGEX MATCH "([^\/]+)\\.${ARGV0}" shader ${shader_file})
string(REGEX MATCH "([^\/]+)\\.${ARGV0}$" shader ${shader_file})
string(REPLACE ".${ARGV0}" "" shader ${shader})
add_custom_command(
OUTPUT ${shader_file}.h
Expand Down

0 comments on commit 161856b

Please sign in to comment.