Discussion:
[ft-devel] [PATCH] Install DLL files in CMAKE_INSTALL_BINDIR
David Demelier
2018-10-17 07:41:07 UTC
Permalink
On Windows, you need to specify RUNTIME DESTINATION to install() in case
of DLL builds.
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7793a04d..c27ae9533 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -469,6 +469,7 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
EXPORT freetype-targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
FRAMEWORK DESTINATION Library/Frameworks
COMPONENT libraries)
install(
--
2.19.0
Werner LEMBERG
2018-10-17 09:25:59 UTC
Permalink
Post by David Demelier
On Windows, you need to specify RUNTIME DESTINATION to install() in case
of DLL builds.
Patch applied, thanks!


Werner
Nikolaus Waxweiler
2018-10-17 10:14:07 UTC
Permalink
I remember adding and removing this for some reason 🀔 Guess I'll find out
at the next update.
Werner LEMBERG
2018-10-17 12:25:33 UTC
Permalink
I remember adding and removing this for some reason... Guess I'll
find out at the next update.
OK :-)


Werner
David Demelier
2018-10-17 11:33:29 UTC
Permalink
I remember adding and removing this for some reason 🤔 Guess I'll find
out at the next update.
If you don't add RUNTIME then the freetype*.dll file is not installed
along the .lib file under windows. It's the same case for MinGW.

Regards,
--
David
Loading...