mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 18:01:56 +00:00
CMake: Properly include zstd include directories
This commit is contained in:
parent
498c06b85a
commit
048f6fac52
3 changed files with 16 additions and 9 deletions
10
CMake/DolphinLibraryTools.cmake
Normal file
10
CMake/DolphinLibraryTools.cmake
Normal file
|
@ -0,0 +1,10 @@
|
|||
# like add_library(new ALIAS old) but avoids add_library cannot create ALIAS target "new" because target "old" is imported but not globally visible. on older cmake
|
||||
# This can be replaced with a direct alias call once our minimum is cmake 3.18
|
||||
function(dolphin_alias_library new old)
|
||||
string(REPLACE "::" "" library_no_namespace ${old})
|
||||
if (NOT TARGET _alias_${library_no_namespace})
|
||||
add_library(_alias_${library_no_namespace} INTERFACE)
|
||||
target_link_libraries(_alias_${library_no_namespace} INTERFACE ${old})
|
||||
endif()
|
||||
add_library(${new} ALIAS _alias_${library_no_namespace})
|
||||
endfunction()
|
Loading…
Add table
Add a link
Reference in a new issue