build: fix syntax and rm dbg prints from 2a65e92d

Remove two debug messages and add a missing paren to the cmake source.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2022-11-28 18:34:48 +00:00
parent 2a65e92da2
commit a42e166e94
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 1 additions and 5 deletions

View File

@ -2,16 +2,12 @@
# pollution.
unset(new_path)
message("BEFORE: $ENV{PATH}")
foreach(p $ENV{PATH})
if(NOT p MATCHES "(^|\\\\)[Ss]trawberry\\\\([Pp]erl|[Cc])\\\\(.*\\\\)?[Bb]in$")
list(APPEND new_path ${p})
endif()
endforeach(
endforeach()
set(ENV{PATH} "${new_path}")
message("AFTER: $ENV{PATH}")
# vim:sw=4 et sts=4 ts=8: