From 4b4d9d6de6aa3a7813ac994356b25075af2431d4 Mon Sep 17 00:00:00 2001 From: Jules Fouchy Date: Sun, 20 Oct 2024 17:02:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20running=20the=20tests=20(m?= =?UTF-8?q?issing=20ffmpeg=20DLLs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2616a2f3..b4265188 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,16 +127,4 @@ target_compile_definitions(Tests-Coollab PRIVATE LAB_ENABLE_TESTS) target_link_libraries(Tests-Coollab PRIVATE Coollab-Properties) target_link_libraries(Tests-Coollab PRIVATE doctest::doctest) set_target_properties(Tests-Coollab PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/tests/${CMAKE_BUILD_TYPE}) - -# Force static linking of the runtime library -if(MSVC) - message("BOOOOOOOOOOOOB") - - # Use /MT for release, /MTd for debug - foreach(flag_var CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG - CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG) - if(${flag_var} MATCHES "/MD") - string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}") - endif() - endforeach() -endif() +cool_setup(Tests-Coollab)