mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-02-17 09:02:23 +00:00
- made sndfile imported library global
CMake earlier than 3.18 does not support library aliases to non-global imported targets. This fixes #22.
This commit is contained in:
parent
6bcbc7aeb5
commit
f24498950d
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ include(FindPackageHandleStandardArgs)
|
|||
find_package_handle_standard_args(SndFile DEFAULT_MSG SNDFILE_LIBRARY SNDFILE_INCLUDE_DIR)
|
||||
|
||||
if(SNDFILE_FOUND)
|
||||
add_library(sndfile UNKNOWN IMPORTED)
|
||||
add_library(sndfile UNKNOWN IMPORTED GLOBAL)
|
||||
set_target_properties(sndfile
|
||||
PROPERTIES
|
||||
IMPORTED_LOCATION "${SNDFILE_LIBRARY}"
|
||||
|
|
Loading…
Reference in a new issue