Improved linux helper CMake setup

This commit is contained in:
GPayne
2022-04-14 22:52:12 -06:00
parent cf134701ee
commit 3859c6003c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ endif()
set(WEBBROWSER_HELPER_SOURCES_WINDOWS src/processhelperwindows.cpp)
if (OS_LINUX)
list(APPEND WEBBROWSER_HELPER_SOURCES src/processhelperlinux.cpp)
set(WEBBROWSER_HELPER_SOURCES_LINUX src/processhelperwindows.cpp)
set(WEBBROWSER_HELPER_SOURCES_LINUX src/processhelperlinux.cpp)
endif()
APPEND_PLATFORM_SOURCES(WEBBROWSER_HELPER_SOURCES)
@@ -56,7 +56,7 @@ function(run_cef_platform_config cef_root cef_target module_path)
run_cef_windows_config("${cef_target}" "${cef_root}" "${module_path}")
endif ()
if (OS_LINUX)
run_cef_linux_config("${cef_target}")
run_cef_linux_config("${cef_target}" "${cef_root}")
endif ()
endfunction ()
@@ -140,7 +140,7 @@ function(run_cef_windows_config CEF_TARGET CEF_ROOT MODULE_PATH)
add_windows_cef_manifest("${CEF_TARGET_OUT_DIR}" "${MODULE_PATH}" "${CEF_TARGET}" "exe")
endfunction ()
function(run_cef_linux_config CEF_ROOT)
function(run_cef_linux_config CEF_TARGET CEF_ROOT)
# Executable target.
add_dependencies(${CEF_TARGET} libcef_dll_wrapper)
target_link_libraries(${CEF_TARGET} PUBLIC libcef_lib libcef_dll_wrapper ${CEF_STANDARD_LIBS})