File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -282,14 +282,20 @@ install(EXPORT opusfileTargets
282282 NAMESPACE opusfile::
283283)
284284include (CMakePackageConfigHelpers)
285+ configure_package_config_file(
286+ "${CMAKE_CURRENT_SOURCE_DIR} /opusfileConfig.cmake.in"
287+ "${CMAKE_CURRENT_BINARY_DIR} /opusfileConfig.cmake"
288+ INSTALL_DESTINATION
289+ "${CMAKE_INSTALL_LIBDIR} /cmake/opusfile"
290+ )
285291write_basic_package_version_file(
286292 "opusfileConfigVersion.cmake"
287293 VERSION "${PACKAGE_VERSION} "
288294 COMPATIBILITY AnyNewerVersion
289295)
290296install (
291297 FILES
292- "${CMAKE_CURRENT_SOURCE_DIR } /opusfileConfig.cmake"
298+ "${CMAKE_CURRENT_BINARY_DIR } /opusfileConfig.cmake"
293299 "${CMAKE_CURRENT_BINARY_DIR} /opusfileConfigVersion.cmake"
294300 DESTINATION
295301 "${CMAKE_INSTALL_LIBDIR} /cmake/opusfile"
Original file line number Diff line number Diff line change 1+ @PACKAGE_INIT@
2+
13# Ported from CMakeFindDependencyMacro.cmake (finding configs and using pkgconfig as fallback)
24set (cmake_quiet_arg)
35if (${CMAKE_FIND_PACKAGE_NAME} _FIND_QUIETLY)
@@ -41,3 +43,5 @@ set(cmake_fd_quiet_arg)
4143
4244# Including targets of opusfile
4345include ("${CMAKE_CURRENT_LIST_DIR} /opusfileTargets.cmake" )
46+
47+ check_required_components(opusfile)
You can’t perform that action at this time.
0 commit comments