From 50c84bf1dc1aaa40e19c75d7fc62d12dd7e93b3b Mon Sep 17 00:00:00 2001 From: Mark Callow Date: Tue, 24 Mar 2026 20:43:07 +0900 Subject: [PATCH] Only set link option for Emscripten. --- tests/loadtests/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/loadtests/CMakeLists.txt b/tests/loadtests/CMakeLists.txt index 8355b60b1e..7bf1f15515 100644 --- a/tests/loadtests/CMakeLists.txt +++ b/tests/loadtests/CMakeLists.txt @@ -113,6 +113,12 @@ if(EMSCRIPTEN) "SHELL:--use-port=sdl3" "SHELL:-Wno-experimental" ) + + target_link_options( + appfwSDL + PUBLIC + -Wno-experimental + ) endif() set_target_properties(appfwSDL PROPERTIES @@ -144,12 +150,6 @@ PUBLIC SDL3::SDL3 ) -target_link_options( - appfwSDL -PUBLIC - -Wno-experimental -) - if(${KTX_FEATURE_LOADTEST_APPS} MATCHES "OpenGL") add_library( GLAppSDL STATIC appfwSDL/GLAppSDL.cpp