diff options
author | Chris Robinson <[email protected]> | 2023-07-04 11:30:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-07-04 11:30:18 -0700 |
commit | c12ada68951ea67a59bef7d4fcdf22334990c12a (patch) | |
tree | 1c38c022fd6ab499fc5a8616a3dfad0c6ae6c08f /cmake | |
parent | 3db472f9c6f5a9f012fb80d44b7bd310de99246a (diff) |
Don't use an import target for OpenSL
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindOpenSL.cmake | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cmake/FindOpenSL.cmake b/cmake/FindOpenSL.cmake index 00428749..3df54d44 100644 --- a/cmake/FindOpenSL.cmake +++ b/cmake/FindOpenSL.cmake @@ -2,8 +2,9 @@ # Find the OpenSL libraries # # This module defines the following variables and targets: -# OPENSL_FOUND - True if OPENSL was found -# OpenSL::OpenSLES - The OpenSLES target +# OPENSL_FOUND - True if OPENSL was found +# OPENSL_INCLUDE_DIRS - The OpenSL include paths +# OPENSL_LIBRARIES - The OpenSL libraries to link # #============================================================================= @@ -53,11 +54,8 @@ find_package_handle_standard_args(OpenSL REQUIRED_VARS OPENSL_LIBRARY OPENSL_INC OPENSL_ANDROID_INCLUDE_DIR) if(OPENSL_FOUND) - add_library(OpenSL::OpenSLES UNKNOWN IMPORTED) - set_target_properties(OpenSL::OpenSLES PROPERTIES - IMPORTED_LOCATION ${OPENSL_LIBRARY} - INTERFACE_INCLUDE_DIRECTORIES ${OPENSL_INCLUDE_DIR} - INTERFACE_INCLUDE_DIRECTORIES ${OPENSL_ANDROID_INCLUDE_DIR}) + set(OPENSL_LIBRARIES ${OPENSL_LIBRARY}) + set(OPENSL_INCLUDE_DIRS ${OPENSL_INCLUDE_DIR} ${OPENSL_ANDROID_INCLUDE_DIR}) endif() mark_as_advanced(OPENSL_INCLUDE_DIR OPENSL_ANDROID_INCLUDE_DIR OPENSL_LIBRARY) |