From 61f48eed1777377ab2fed6e99837b3cfd8cf1d4e Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Fri, 30 Sep 2022 13:39:53 +0200 Subject: [PATCH] Add branch for specific compiler flags Signed-off-by: TheJackiMonster --- src/ffx-fsr2-api/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ffx-fsr2-api/CMakeLists.txt b/src/ffx-fsr2-api/CMakeLists.txt index 4a4007b..1e2bf69 100644 --- a/src/ffx-fsr2-api/CMakeLists.txt +++ b/src/ffx-fsr2-api/CMakeLists.txt @@ -51,8 +51,10 @@ else() message(FATAL_ERROR "Unsupported target platform - only supporting x64 and Win32 currently") endif() -# Embed PDBs in the debug versions of the libs -set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Z7") +if (MSVC) + # Embed PDBs in the debug versions of the libs + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Z7") +endif() # Write both debug and release versions of the static libs to the /lib folder as they are uniquely named set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_HOME_DIRECTORY}/bin/ffx_fsr2_api/)