The exicutable only works when dll is in the same folder as exicutable
I have noticed that my executable only works when it’s in the same folder as the DLL file it’s made with. I know if I put the DLL file in system32 folder my executable will work without having the DLL file in the same folder However, I was wondering if it’s possible to put the DLL and executable in different folders. I am using cmake and it will be very helpful my build folder is kinda getting messy .