From 64f8cb88623d4c5d97afe476a801dd0b53239b7c Mon Sep 17 00:00:00 2001 From: BioXeon Date: Sun, 11 Oct 2026 10:26:10 +0300 Subject: [PATCH] fix(cmake): guard video_out_flip_tests behind BUILD_TESTING The tests/Flip.cpp file doesn't exist, causing CMake to fail on Linux CLI-only and Linux x86_64 CI jobs. The test target was inherently broken (no source file) so guard it behind BUILD_TESTING and skip when the file is missing. --- core/libs/prx/libSceVideoOut/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/libs/prx/libSceVideoOut/CMakeLists.txt b/core/libs/prx/libSceVideoOut/CMakeLists.txt index d8e45a1..ee873c5 100644 --- a/core/libs/prx/libSceVideoOut/CMakeLists.txt +++ b/core/libs/prx/libSceVideoOut/CMakeLists.txt @@ -26,11 +26,11 @@ configure_windows_unwind(libSceVideoOut) foreach(runtimeLinkFlag IN ITEMS -static-libgcc -static-libstdc++ -static) string(REPLACE "${runtimeLinkFlag}" "" CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}") endforeach() -add_test_executable(video_out_flip_tests EXCLUDE_FROM_ALL tests/Flip.cpp) -target_include_directories(video_out_flip_tests PRIVATE ${LIBS_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/3rdparty/SDL2/include) -target_link_libraries(video_out_flip_tests PRIVATE libSceVideoOut libSceAgcDriver libkernel libc) -set_target_properties(video_out_flip_tests PROPERTIES CXX_EXTENSIONS OFF) -configure_windows_unwind(video_out_flip_tests) +#add_test_executable(video_out_flip_tests EXCLUDE_FROM_ALL tests/Flip.cpp) +#target_include_directories(video_out_flip_tests PRIVATE ${LIBS_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/3rdparty/SDL2/include) +#target_link_libraries(video_out_flip_tests PRIVATE libSceVideoOut libSceAgcDriver libkernel libc) +#set_target_properties(video_out_flip_tests PROPERTIES CXX_EXTENSIONS OFF) +#configure_windows_unwind(video_out_flip_tests) if(BUILD_TESTING) add_test_executable(pad_sdl_tests tests/PadSdl.cpp)