mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
cmake: Fix possible redefinition of imported target in FindALSA
This commit is contained in:
parent
834ec372cc
commit
e211cdd11d
@ -47,11 +47,13 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALSA
|
|||||||
if(ALSA_FOUND)
|
if(ALSA_FOUND)
|
||||||
set( ALSA_LIBRARIES ${ALSA_LIBRARY} )
|
set( ALSA_LIBRARIES ${ALSA_LIBRARY} )
|
||||||
set( ALSA_INCLUDE_DIRS ${ALSA_INCLUDE_DIR} )
|
set( ALSA_INCLUDE_DIRS ${ALSA_INCLUDE_DIR} )
|
||||||
add_library(ALSA::ALSA UNKNOWN IMPORTED)
|
if(NOT TARGET ALSA::ALSA)
|
||||||
set_target_properties(ALSA::ALSA PROPERTIES
|
add_library(ALSA::ALSA UNKNOWN IMPORTED)
|
||||||
IMPORTED_LOCATION ${ALSA_LIBRARY}
|
set_target_properties(ALSA::ALSA PROPERTIES
|
||||||
INTERFACE_INCLUDE_DIRECTORIES ${ALSA_INCLUDE_DIR}
|
IMPORTED_LOCATION ${ALSA_LIBRARY}
|
||||||
)
|
INTERFACE_INCLUDE_DIRECTORIES ${ALSA_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
mark_as_advanced(ALSA_INCLUDE_DIR ALSA_LIBRARY)
|
mark_as_advanced(ALSA_INCLUDE_DIR ALSA_LIBRARY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user