[CMake] Fix deployment in Debug mode