From 2308d7f1d6319ee685c7f89b6e2d2036b24093cf Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 2 May 2024 15:48:48 +0300 Subject: [PATCH] better way for compiler option --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ded8ed3..498051ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -395,7 +395,7 @@ if (WIN32) # Target Windows 10 RS5 add_definitions(-DNTDDI_VERSION=0x0A000006 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00) # Increase stack,commit - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:0x200000,0x200000") + target_link_options(shadps4 PRIVATE /STACK:0x200000,0x200000) endif() if (WIN32)