From fbb2c763deabdeb9501c9bf8a0b9e7468bafb9c8 Mon Sep 17 00:00:00 2001 From: Ravi Peters Date: Fri, 5 Jun 2020 10:44:11 +0200 Subject: [PATCH] include system runtime libraries for windows --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0501e54..07d51f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -223,6 +223,8 @@ add_subdirectory(apps) if (WIN32) set(CPACK_GENERATOR NSIS) set(CPACK_NSIS_MODIFY_PATH ON) + include(InstallRequiredSystemLibraries) + INSTALL(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION bin COMPONENT Libraries) endif (WIN32) set(CPACK_PACKAGE_NAME "Geoflow") set(CPACK_PACKAGE_VENDOR "Ravi Peters")