Skip to content

Commit a99cf04

Browse files
committed
Make copying other Windows DLLs to the install directory optional
1 parent 10ec4e1 commit a99cf04

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ if(WIN32)
9595
install(FILES ${GRAPHQLSERVICE_DIR}/graphqlservice.lib
9696
DESTINATION lib)
9797

98-
install(CODE "include(${CMAKE_SOURCE_DIR}/copy-windows-dlls.cmake)"
99-
CODE "copy_windows_dlls(${CMAKE_BINARY_DIR})")
98+
option(INSTALL_WINDOWS_DLLS "Copy all Windows DLLs as part of the install to get dependencies." OFF)
99+
100+
if(INSTALL_WINDOWS_DLLS)
101+
install(CODE "include(${CMAKE_SOURCE_DIR}/copy-windows-dlls.cmake)"
102+
CODE "copy_windows_dlls(${CMAKE_BINARY_DIR})")
103+
endif()
100104
endif()

0 commit comments

Comments
 (0)