cmake: Don't use unqualified target_link_libraries
You can't mix unqualified and qualified link libraries (PUBLIC / PRIVATE). Use the modern form.
This commit is contained in:
parent
a9ed44cd48
commit
8c82607c95
|
@ -21,7 +21,7 @@ add_definitions(-D__STDC_CONSTANT_MACROS)
|
|||
|
||||
macro(add_dolphin_library lib srcs libs)
|
||||
add_library(${lib} STATIC ${srcs})
|
||||
target_link_libraries(${lib} ${libs})
|
||||
target_link_libraries(${lib} PUBLIC ${libs})
|
||||
endmacro()
|
||||
|
||||
add_subdirectory(Core)
|
||||
|
|
|
@ -37,5 +37,5 @@ include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV)
|
|||
|
||||
# Link against glslang, the other necessary libraries are referenced by the executable.
|
||||
add_dolphin_library(videovulkan "${SRCS}" "${LIBS}")
|
||||
target_link_libraries(videovulkan glslang)
|
||||
target_link_libraries(videovulkan PRIVATE glslang)
|
||||
|
||||
|
|
|
@ -62,5 +62,5 @@ endif()
|
|||
add_dolphin_library(videocommon "${SRCS}" "${LIBS}")
|
||||
|
||||
if(LIBAV_FOUND)
|
||||
target_link_libraries(videocommon ${LIBS} ${LIBAV_LIBRARIES})
|
||||
target_link_libraries(videocommon PRIVATE ${LIBS} ${LIBAV_LIBRARIES})
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue