Open AlexCzar opened 10 years ago
diff --git a/src/make_config.cmake b/src/make_config.cmake
index 564601e..816f597 100644
--- a/src/make_config.cmake
+++ b/src/make_config.cmake
@@ -11,8 +11,12 @@ file(READ "${config}" in_contents)
set(out_contents)
string(REPLACE "\n" ";" in_contents "${in_contents}")
foreach(in_line ${in_contents})
- string(REGEX REPLACE "[ \t]+" ";" in_line "${in_line}")
- adjust(${in_line})
+ if(in_line MATCHES "#.*")
+ list(APPEND out_contents "${in_line}")
+ else()
+ string(REGEX REPLACE "[ \t]+" ";" in_line "${in_line}")
+ adjust(${in_line})
+ endif()
endforeach(in_line)
string(REPLACE ";" "\n" out_contents "${out_contents}")
file(WRITE "${output}" "${out_contents}\n")
Command that fails:
Failure message:
Full log: https://gist.github.com/AlexCzar/4da20640193be0c80c06
Software versions used: