mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
CMake: polish the Windows packaging rules
This tweaks the CMake rules for building an installation package on Windows: - Sets license file (otherwise nsis shows an ugly default) - Adds LLVM logo - Shows "do you want to add this to the system path" dialog. Differential Revision: http://llvm-reviews.chandlerc.com/D1414 llvm-svn: 188509
This commit is contained in:
parent
ead5a4d04b
commit
ce0ce30521
@ -493,7 +493,16 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/
|
||||
set(CPACK_PACKAGE_VENDOR "LLVM")
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR ${LLVM_VERSION_MAJOR})
|
||||
set(CPACK_PACKAGE_VERSION_MINOR ${LLVM_VERSION_MINOR})
|
||||
add_version_info_from_vcs(CPACK_PACKAGE_VERSION_PATCH)
|
||||
if( LLVM_APPEND_VC_REV )
|
||||
add_version_info_from_vcs(CPACK_PACKAGE_VERSION_PATCH)
|
||||
else()
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "svn")
|
||||
endif()
|
||||
set(CPACK_RESOURCE_FILE_LICENSE "${LLVM_MAIN_SRC_DIR}/LICENSE.TXT")
|
||||
if(WIN32 AND NOT UNIX)
|
||||
set(CPACK_PACKAGE_ICON "${LLVM_MAIN_SRC_DIR}\\\\cmake\\\\nsis_logo.bmp")
|
||||
set(CPACK_NSIS_MODIFY_PATH "ON")
|
||||
endif()
|
||||
include(CPack)
|
||||
|
||||
# Workaround for MSVS10 to avoid the Dialog Hell
|
||||
|
BIN
cmake/nsis_logo.bmp
Normal file
BIN
cmake/nsis_logo.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Loading…
Reference in New Issue
Block a user