diff --git a/catch/CMakeLists.txt b/catch/CMakeLists.txt index 1b53c746d3..59751730ec 100644 --- a/catch/CMakeLists.txt +++ b/catch/CMakeLists.txt @@ -151,8 +151,9 @@ if (WIN32) # When args to linker exceeds max chars. # msbuild writes args to a rsp file. # This is used to reference the obj file correctly - SET(CMAKE_C_RESPONSE_FILE_LINK_FLAG "") - SET(CMAKE_CXX_RESPONSE_FILE_LINK_FLAG "") + SET(CMAKE_C_RESPONSE_FILE_LINK_FLAG "@") + SET(CMAKE_CXX_RESPONSE_FILE_LINK_FLAG "@") + SET(CMAKE_NINJA_FORCE_RESPONSE_FILE TRUE CACHE INTERNAL "") endif() if(HIP_PLATFORM MATCHES "amd" AND HIP_COMPILER MATCHES "clang")