Skip to content

Commit 7903de3

Browse files
committed
windows library stuff
1 parent 93374f7 commit 7903de3

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
55
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
66
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
77

8-
if (MSVC)
9-
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
10-
endif()
11-
128
project(ffmpeg-api VERSION 1.0.0)
139

1410
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.cpp)
1511
add_library(${PROJECT_NAME} SHARED ${SOURCES})
1612

17-
set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Final>:Final>")
13+
set_property(TARGET ${PROJECT_NAME} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
1814
set_property(TARGET ${PROJECT_NAME} PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
1915

2016
if (NOT DEFINED ENV{GEODE_SDK})

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void audioRaw() {
121121
### Windows
122122
To get the needed libraries on Windows, you can use vcpkg:
123123
```sh
124-
vcpkg install ffmpeg[core,avcodec,avformat,avfilter,swscale,swresample,amf,x264,x265,nvcodec,openh264,aom,vpx]:x64-windows-static --recurse
124+
vcpkg install ffmpeg[core,avcodec,avformat,avfilter,swscale,swresample,amf,x264,x265,nvcodec,openh264,aom,vpx]:x64-windows-static-md --recurse
125125
```
126126
the other libraries are part of the Windows SDK
127127

0 commit comments

Comments
 (0)