Skip to content

Commit

Permalink
CMakeLists.txt: do not require PkgConfig for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Asd-g committed Aug 29, 2022
1 parent b801b97 commit abd2b92
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,24 @@ configure_file (
"${PROJECT_SOURCE_DIR}/src/version.rc"
)

find_package(PkgConfig REQUIRED)
if(NOT MSVC)
find_package(PkgConfig REQUIRED)

pkg_check_modules(AVISYNTH avisynth)
if(AVISYNTH_FOUND)
include_directories(${AVISYNTH_INCLUDE_DIRS})
else()
include_directories(include/avisynth)
endif()
pkg_check_modules(AVISYNTH avisynth)
if(AVISYNTH_FOUND)
include_directories(${AVISYNTH_INCLUDE_DIRS})
else()
include_directories(include/avisynth)
endif()

pkg_check_modules(VAPOURSYNTH vapoursynth)
if(VAPOURSYNTH_FOUND)
include_directories(${VAPOURSYNTH_INCLUDE_DIRS})
pkg_check_modules(VAPOURSYNTH vapoursynth)
if(VAPOURSYNTH_FOUND)
include_directories(${VAPOURSYNTH_INCLUDE_DIRS})
else()
include_directories(include/vapoursynth)
endif()
else()
include_directories(include/avisynth)
include_directories(include/vapoursynth)
endif()

Expand Down

0 comments on commit abd2b92

Please sign in to comment.