Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-cmake-builder
Commits
e6560e20
Commit
e6560e20
authored
Mar 16, 2015
by
Ghislain MARY
Browse files
Include Microsoft redistributable libraries in the desktop package on Windows.
parent
49a88d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
configs/desktop/CMakeLists.txt
configs/desktop/CMakeLists.txt
+8
-1
No files found.
configs/desktop/CMakeLists.txt
View file @
e6560e20
...
...
@@ -86,11 +86,18 @@ install(DIRECTORY "${LINPHONE_OUTPUT_DIR}/"
PATTERN
"bin/xmlwf.exe"
EXCLUDE
)
if
(
WIN32
)
if
(
MSVC
)
install
(
DIRECTORY
"
${
LINPHONE_OUTPUT_DIR
}
/lib/mediastreamer/plugins/"
DESTINATION
"lib/mediastreamer/plugins"
FILES_MATCHING PATTERN
"*mswasapi*.dll"
)
string
(
REGEX REPLACE
"Visual Studio ([0-9]+).*"
"
\\
1"
MSVC_VERSION
"
${
CMAKE_GENERATOR
}
"
)
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Debug"
)
set
(
MSVC_DEBUG_SYSTEM_LIBRARIES
"d"
)
endif
()
find_file
(
MSVCP_LIB
"msvcp
${
MSVC_VERSION
}
0
${
MSVC_DEBUG_SYSTEM_LIBRARIES
}
.dll"
PATHS
"C:/Windows/System32"
)
find_file
(
MSVCR_LIB
"msvcr
${
MSVC_VERSION
}
0
${
MSVC_DEBUG_SYSTEM_LIBRARIES
}
.dll"
PATHS
"C:/Windows/System32"
)
install
(
FILES
${
MSVCP_LIB
}
${
MSVCR_LIB
}
DESTINATION
"bin"
)
endif
()
set
(
CPACK_PACKAGE_NAME
"Linphone"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment