Commit 95245907 authored by Ronan's avatar Ronan

fix(package): install correctly rootca.pem on Windows when executable name is not linphone

parent 6931c43d
Pipeline #4093 passed with stages
in 60 minutes and 10 seconds
......@@ -160,7 +160,7 @@ if (WIN32)
)
file(GLOB SHARE_CONTENT RELATIVE "${LINPHONE_OUTPUT_DIR}" "${LINPHONE_OUTPUT_DIR}/share/*")
list(REMOVE_ITEM SHARE_CONTENT "share/belr" "share/Belr" "share/images" "share/${EXECUTABLE_NAME}" "share/${APPLICATION_NAME}" "share/sounds")
list(REMOVE_ITEM SHARE_CONTENT "share/belr" "share/Belr" "share/images" "share/${APPLICATION_NAME}" "share/${EXECUTABLE_NAME}" "share/sounds")
foreach (ITEM IN LISTS SHARE_CONTENT)
list(APPEND SHARE_CONTENT_EXCLUDE PATTERN "${ITEM}" EXCLUDE)
endforeach ()
......@@ -182,11 +182,13 @@ if (WIN32)
PATTERN "lib/pkgconfig" EXCLUDE
PATTERN "lib/Win32" EXCLUDE
PATTERN "${EXECUTABLE_NAME}.lnk" EXCLUDE
PATTERN "share/Belr/cmake" EXCLUDE
PATTERN "share/${APPLICATION_NAME}/cmake" EXCLUDE
PATTERN "share/Belr/cmake" EXCLUDE
${SHARE_CONTENT_EXCLUDE}
)
install(FILES "${LINPHONE_OUTPUT_DIR}/share/Linphone/rootca.pem" DESTINATION "share/${EXECUTABLE_NAME}")
if (ENABLE_OPENH264)
install(FILES "${LINPHONE_OUTPUT_DIR}/lib/mediastreamer/plugins/libmsopenh264.dll"
DESTINATION "lib/mediastreamer/plugins"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment