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

master
PatTheMav 2022-05-02 19:54:05 +02:00 committed by Ryan Foster
parent 0744e260e3
commit aec31a9e6d
1 changed files with 4 additions and 14 deletions

View File

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