cmake: Fix handling of optional debug wrapper libraries for obs-browser

This commit is contained in:
PatTheMav 2022-05-02 19:54:05 +02:00 committed by Ryan Foster
parent 0744e260e3
commit aec31a9e6d

View File

@ -125,10 +125,8 @@ if(NOT TARGET CEF::Wrapper)
${CEF_LIBRARY}) ${CEF_LIBRARY})
if(DEFINED CEFWRAPPER_LIBRARY_DEBUG) if(DEFINED CEFWRAPPER_LIBRARY_DEBUG)
add_library(CEF::Wrapper_Debug UNKNOWN IMPORTED) set_target_properties(CEF::Wrapper PROPERTIES IMPORTED_LOCATION_DEBUG
set_target_properties( ${CEFWRAPPER_LIBRARY_DEBUG})
CEF::Wrapper_Debug PROPERTIES IMPORTED_LOCATION
${CEFWRAPPER_LIBRARY_DEBUG})
endif() endif()
else() else()
add_library(CEF::Wrapper INTERFACE IMPORTED) add_library(CEF::Wrapper INTERFACE IMPORTED)
@ -141,10 +139,8 @@ if(NOT TARGET CEF::Wrapper)
${CEF_LIBRARY}) ${CEF_LIBRARY})
if(DEFINED CEFWRAPPER_LIBRARY_DEBUG) if(DEFINED CEFWRAPPER_LIBRARY_DEBUG)
add_library(CEF::Wrapper_Debug INTERFACE IMPORTED) set_target_properties(CEF::Wrapper PROPERTIES IMPORTED_LIBNAME_DEBUG
set_target_properties( ${CEFWRAPPER_LIBRARY_DEBUG})
CEF::Wrapper_Debug PROPERTIES IMPORTED_LIBNAME
${CEFWRAPPER_LIBRARY_DEBUG})
endif() endif()
endif() endif()
@ -153,10 +149,4 @@ if(NOT TARGET CEF::Wrapper)
set_target_properties(CEF::Library PROPERTIES INTERFACE_INCLUDE_DIRECTORIES set_target_properties(CEF::Library PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
"${CEF_INCLUDE_DIR}") "${CEF_INCLUDE_DIR}")
if(DEFINED CEFWRAPPER_LIBRARY_DEBUG)
set_target_properties(
CEF::Wrapper_Debug PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
"${CEF_INCLUDE_DIR}")
endif()
endif() endif()