Skip to content

Commit

Permalink
Update CEF patch
Browse files Browse the repository at this point in the history
Fixes support for ALIAS targets with CMake < 3.18.
  • Loading branch information
dimitry-ishenko committed Sep 14, 2024
1 parent d941344 commit 493af98
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/CMakeModules/patches/cef117.patch
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,15 @@
+set(CEF_INSTALL_CMAKEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/CEF${VERSION})
--- /dev/null
+++ b/libcef_dll/CEFConfig.cmake
@@ -0,0 +1,2 @@
@@ -0,0 +1,4 @@
+include("${CMAKE_CURRENT_LIST_DIR}/CEFTargets.cmake")
+add_library(CEF::CEF ALIAS CEF::libcef_dll_wrapper)
+
+add_library(CEF::CEF INTERFACE IMPORTED)
+target_link_libraries(CEF::CEF INTERFACE CEF::libcef_dll_wrapper)
--- a/libcef_dll/CMakeLists.txt
+++ b/libcef_dll/CMakeLists.txt
@@ -782,3 +782,34 @@ target_compile_definitions(${CEF_TARGET}

# Remove the default "lib" prefix from the resulting library.
set_target_properties(${CEF_TARGET} PROPERTIES PREFIX "")
+
Expand Down

0 comments on commit 493af98

Please sign in to comment.