Skip to content

Commit df6c49e

Browse files
authored
Make sure dirent is available on MSVC
It is a header only library, but calling find_package and "linking" against it makes sure, that it is found and that the include paths are available for us
1 parent 82f6e89 commit df6c49e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ endif()
190190

191191
if (MSVC)
192192
find_package(PThreads4W REQUIRED)
193+
find_package(Dirent 1.26 REQUIRED)
193194
endif ()
194195
find_package(Threads REQUIRED)
195196
find_package(PkgConfig REQUIRED)

src/framework/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ target_compile_options(mlt PRIVATE ${MLT_COMPILE_OPTIONS})
8787
target_link_libraries(mlt PRIVATE Threads::Threads ${CMAKE_DL_LIBS})
8888

8989
if(MSVC)
90-
target_link_libraries(mlt PRIVATE msvccompat PThreads4W::PThreads4W)
90+
target_link_libraries(mlt PRIVATE msvccompat PThreads4W::PThreads4W dirent)
9191
else()
9292
target_link_libraries(mlt PRIVATE m)
9393
endif()

0 commit comments

Comments
 (0)