mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
cmake: Silence warnings.
This commit is contained in:
15
CMake/FindCUBEB.cmake
Normal file
15
CMake/FindCUBEB.cmake
Normal file
@ -0,0 +1,15 @@
|
||||
find_path(CUBEB_INCLUDE_DIR cubeb.h PATH_SUFFIXES cubeb)
|
||||
find_library(CUBEB_LIBRARY cubeb)
|
||||
mark_as_advanced(CUBEB_INCLUDE_DIR CUBEB_LIBRARY)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(CUBEB DEFAULT_MSG
|
||||
CUBEB_INCLUDE_DIR CUBEB_LIBRARY)
|
||||
|
||||
if(CUBEB_FOUND AND NOT TARGET CUBEB)
|
||||
add_library(cubeb::cubeb UNKNOWN IMPORTED)
|
||||
set_target_properties(cubeb::cubeb PROPERTIES
|
||||
IMPORTED_LOCATION "${CUBEB_LIBRARY}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CUBEB_INCLUDE_DIR}"
|
||||
)
|
||||
endif()
|
Reference in New Issue
Block a user