Skip to content

Commit

Permalink
dev(cmake): inspect all hlsl lines, not just first
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Mar 9, 2024
1 parent 025134c commit 2748014
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 @@ -27,7 +27,7 @@ endif()
function(inspect_hlsl_imports FILE VARIABLE)
file(STRINGS ${FILE} HLSL_IMPORTS REGEX "^#include \"([^\"]+)\"")
foreach(IMPORT_LINE ${HLSL_IMPORTS})
string(REGEX MATCH "^#include \"([^\"]+)\"" _ ${HLSL_IMPORTS})
string(REGEX MATCH "^#include \"([^\"]+)\"" _ ${IMPORT_LINE})
cmake_path(GET FILE PARENT_PATH FILE_DIRECTORY)
cmake_path(ABSOLUTE_PATH CMAKE_MATCH_1 BASE_DIRECTORY ${FILE_DIRECTORY} OUTPUT_VARIABLE HLSL_PATH )
cmake_path(NORMAL_PATH HLSL_PATH)
Expand Down

0 comments on commit 2748014

Please sign in to comment.