From 126d0aa4ff47837c8b1dbfbc601b583e234bece0 Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary Date: Sun, 9 Jul 2023 23:06:30 +0100 Subject: [PATCH] Add rsp files for windows Change-Id: Ida4fa9cdef1f105d2aeb62705b43bb25c4a1b56f --- catch/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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")