forked from mirror/OpenTTD
Codefix: [CMake] Debug libs of Ogg, Opus and OpusFile were used for release with multi-config generators (#13539)
This commit is contained in:
@@ -4,6 +4,9 @@ find_library(OpusFile_LIBRARY
|
||||
NAMES opusfile
|
||||
)
|
||||
|
||||
include(FixVcpkgLibrary)
|
||||
FixVcpkgLibrary(OpusFile)
|
||||
|
||||
set(OpusFile_COMPILE_OPTIONS "" CACHE STRING "Extra compile options of opusfile")
|
||||
|
||||
set(OpusFile_LINK_LIBRARIES "" CACHE STRING "Extra link libraries of opusfile")
|
||||
@@ -36,5 +39,6 @@ if (OpusFile_FOUND)
|
||||
INTERFACE_LINK_LIBRARIES "Ogg::ogg;Opus::opus;${OpusFile_LINK_LIBRARIES}"
|
||||
INTERFACE_LINK_FLAGS "${OpusFile_LINK_FLAGS}"
|
||||
)
|
||||
FixVcpkgTarget(OpusFile OpusFile::opusfile)
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user