From e27e7bed4d04a64747aed8d4a8f313151dd20d19 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 28 Jul 2019 20:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6#57?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fcf88764..ee75592c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -44,9 +44,9 @@ foreach(TEST_SRC ${TEST_SRC_LIST}) target_link_libraries(${TEST_EXE_NAME} ${LINK_LIB_LIST}) endforeach() -if(MSVC) +if(MSVC AND SDL2_FOUND AND AVCODEC_FOUND AND AVUTIL_FOUND) set_target_properties(test_player PROPERTIES LINK_FLAGS "/SAFESEH:NO /SUBSYSTEM:WINDOWS" ) -endif(MSVC) +endif()