Skip to content

Commit

Permalink
🚨 Fix running the tests (missing ffmpeg DLLs)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Oct 20, 2024
1 parent 85541b4 commit 4b4d9d6
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4b4d9d6

Please sign in to comment.