Cmake fix
Some checks failed
Build Dusk / build-linux (push) Failing after 38s
Build Dusk / build-psp (push) Failing after 43s

This commit is contained in:
2025-11-15 22:27:09 -06:00
parent 0ec701f30b
commit 67f62daa9f

View File

@@ -15,9 +15,11 @@ file(STRINGS "${ENV_FILE}" ENV_LINES)
set(HEADER_CONTENT "#pragma once\n#include \"dusk.h\"\n\n") set(HEADER_CONTENT "#pragma once\n#include \"dusk.h\"\n\n")
foreach(line IN LISTS ENV_LINES) foreach(line IN LISTS ENV_LINES)
# Trim whitespace # Only trim whitespace if line is not empty
if(NOT line STREQUAL "")
string(REGEX REPLACE "^[ \t]*" "" line "${line}") string(REGEX REPLACE "^[ \t]*" "" line "${line}")
string(REGEX REPLACE "[ \t]*$" "" line "${line}") string(REGEX REPLACE "[ \t]*$" "" line "${line}")
endif()
# Skip comments and empty lines (allow whitespace before # or ;) # Skip comments and empty lines (allow whitespace before # or ;)
if(line STREQUAL "" OR line MATCHES "^[ \t]*[#;]") if(line STREQUAL "" OR line MATCHES "^[ \t]*[#;]")