Skip to content

Instantly share code, notes, and snippets.

@habibg1232191
Created August 20, 2022 11:04
Show Gist options
  • Save habibg1232191/ca619fb66f2df73f935a7be6519f4ee2 to your computer and use it in GitHub Desktop.
Save habibg1232191/ca619fb66f2df73f935a7be6519f4ee2 to your computer and use it in GitHub Desktop.
CMake Warning (dev) at C:/Program Files/JetBrains/CLion 2022.2.1/bin/cmake/win/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (FFmpeg)
does not match the name of the calling package (ffmpeg). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindFFmpeg.cmake:151 (find_package_handle_standard_args)
C:/src/vcpkg/scripts/buildsystems/vcpkg.cmake:826 (_find_package)
CMakeLists.txt:9 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find FFmpeg (missing: FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS AVCODEC_LIBRARIES AVCODEC_INCLUDE_DIRS AVFORMAT_LIBRARIES AVFORMAT_INCLUDE_DIRS AVUTIL_LIBRARIES AVUTIL_INCLUDE_DIRS)
-- Configuring done
CMake Error at CMakeLists.txt:13 (target_link_libraries):
Target "test_win32_app" links to:
ffmpeg::avformat
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
[Finished]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment