diff --git a/cmake/modules/envtoh.cmake b/cmake/modules/envtoh.cmake index ee65e97..62c506d 100644 --- a/cmake/modules/envtoh.cmake +++ b/cmake/modules/envtoh.cmake @@ -20,10 +20,6 @@ foreach(line IN LISTS ENV_LINES) continue() endif() - # Trim whitespace only for non-empty, non-comment lines - string(REGEX REPLACE "^[ \t]*" "" line "${line}") - string(REGEX REPLACE "[ \t]*$" "" line "${line}") - # Expect KEY=VALUE (allow spaces around '=') if(NOT line MATCHES "^[A-Za-z_][A-Za-z0-9_]*[ \t]*=[ \t]*") message(WARNING "Skipping invalid line in ${ENV_FILE}: '${line}'")