summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-win32-crt.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-24 22:13:00 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-24 22:13:00 +0100
commit28d028d26abaaa5c6192624262811e2989de36de (patch)
treeb0e23d1645318e942276f96a501011bd45f3bf37 /cmake/opentrack-win32-crt.cmake
parentd564786057c62dce58ecf9ebd9726310fc3ab598 (diff)
cmake: switch to using dynamically-linked CRT
It's been verified to work on Windows XP.
Diffstat (limited to 'cmake/opentrack-win32-crt.cmake')
-rw-r--r--cmake/opentrack-win32-crt.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/opentrack-win32-crt.cmake b/cmake/opentrack-win32-crt.cmake
new file mode 100644
index 00000000..85348e89
--- /dev/null
+++ b/cmake/opentrack-win32-crt.cmake
@@ -0,0 +1,8 @@
+if(MSVC)
+ set(SDK_WIN32_CRT "" CACHE PATH "Path to dynamically linked CRT libraries")
+ if(SDK_WIN32_CRT)
+ file(GLOB crt-libs "${SDK_WIN32_CRT}/*.dll")
+ install(FILES ${crt-libs} DESTINATION . ${opentrack-perms})
+ install(FILES "${SDK_WIN32_CRT}/LICENSE.TXT" RENAME "MSVCRT-LICENSE.txt" DESTINATION "./${opentrack-hier-doc}/3rdparty-notices")
+ endif()
+endif()