Logo
Explore Help
Sign In
nintendo-emulators/visualboyadvance-m
1
0
Fork 0
You've already forked visualboyadvance-m
mirror of https://github.com/visualboyadvance-m/visualboyadvance-m synced 2025-10-05 23:52:49 +02:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
visualboyadvance-m/cmake/RemoveStrawberryPerlFromPATH.cmake

14 lines
333 B
CMake
Raw Permalink Normal View History

build: remove StrawberryPerl from ENV{PATH} On Windows, StrawberryPerl tools and libraries exposed in the PATH environment variable can pollute and break the build, remove any such entries for WIN32 as a startup cmake action. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2022-11-28 10:27:06 -08:00
# Remove StrawberryPerl from the PATH environment variable due to various build
# pollution.
unset(new_path)
foreach(p $ENV{PATH})
if(NOT p MATCHES "(^|\\\\)[Ss]trawberry\\\\([Pp]erl|[Cc])\\\\(.*\\\\)?[Bb]in$")
list(APPEND new_path ${p})
endif()
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>
2022-11-28 18:34:48 +00:00
endforeach()
build: remove StrawberryPerl from ENV{PATH} On Windows, StrawberryPerl tools and libraries exposed in the PATH environment variable can pollute and break the build, remove any such entries for WIN32 as a startup cmake action. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2022-11-28 10:27:06 -08:00
set(ENV{PATH} "${new_path}")
# vim:sw=4 et sts=4 ts=8:
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 38ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API