I'm working on a new mingw32 build of a project I help develop and I'm running into an issue building the installer because it can't find libgcc:

warning: target 'libgcc_s_sjlj-1.dll' is not absolute...
warning: target 'libgcc_s_sjlj-1.dll' does not exist...

Which is present
$ locate libgcc_s_sjlj-1.dll

After adding some debug messaging to the cmake configuration I see:

CMAKE_SYSTEM_LIBRARY_PATH: /usr/i686-w64-mingw32/sys-root/mingw/bin/usr/bin/bin

I'm not sure exactly where it's set, I'm assuming it's parsed from CMAKE_FIND_ROOT_PATH or the like but it's not getting setup as a list of directories but rather concatenated together.