Skip to content

Commit db788d8

Browse files
committed
make runtime deps for self contained windows only
1 parent 9ee3490 commit db788d8

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

cmake/RuntimeDependencies.cmake

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,22 @@
1313

1414
if(OPTION_SELF_CONTAINED)
1515

16-
# Install 3rd-party runtime dependencies into runtime-component
17-
# install(FILES ... COMPONENT runtime)
18-
19-
find_file(DLLS_CPPASSIST cppassist.dll)
20-
21-
set(DLLS
22-
${DLLS_CPPASSIST}
23-
)
24-
set(PLATFORMS
25-
${DLLS_WIN}
26-
)
27-
install(FILES ${DLLS} DESTINATION ${INSTALL_BIN} COMPONENT examples)
28-
install(FILES ${PLATFORMS} DESTINATION ${INSTALL_BIN}/platforms COMPONENT examples)
16+
if(SYSTEM_WINDOWS)
17+
18+
# Install 3rd-party runtime dependencies into runtime-component
19+
# install(FILES ... COMPONENT runtime)
20+
21+
find_file(DLLS_CPPASSIST cppassist.dll)
22+
23+
set(DLLS
24+
${DLLS_CPPASSIST}
25+
)
26+
set(PLATFORMS
27+
${DLLS_WIN}
28+
)
29+
install(FILES ${DLLS} DESTINATION ${INSTALL_BIN} COMPONENT examples)
30+
install(FILES ${PLATFORMS} DESTINATION ${INSTALL_BIN}/platforms COMPONENT examples)
31+
32+
endif()
2933

3034
endif()

0 commit comments

Comments
 (0)