We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36c922e commit 6efef81Copy full SHA for 6efef81
CMakeLists.txt
@@ -1029,7 +1029,11 @@ elseif(NOT APPLE)
1029
SET(VCREDIST64 "${OpenMW_BINARY_DIR}/vcredist_x64.exe" CACHE FILEPATH "Path to vcredist_x64.exe")
1030
if(EXISTS ${VCREDIST64})
1031
INSTALL(FILES ${VCREDIST64} DESTINATION "redist")
1032
- SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait '\\\"$INSTDIR\\\\redist\\\\vcredist_x64.exe\\\" /q /norestart'" )
+ get_filename_component(REDIST_FILENAME "${VCREDIST64}" NAME)
1033
+ SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
1034
+ ExecWait '\\\"$INSTDIR\\\\redist\\\\${REDIST_FILENAME}\\\" /q /norestart'
1035
+ RMDir /r \\\"$INSTDIR\\\\redist\\\"
1036
+ ")
1037
endif(EXISTS ${VCREDIST64})
1038
1039
if(CMAKE_CL_64)
0 commit comments