File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -87,18 +87,31 @@ else()
87
87
endif ()
88
88
set (CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR} .${CPACK_PACKAGE_VERSION_MINOR} .${CPACK_PACKAGE_VERSION_PATCH} .${ROCM_VERSION_FOR_PACKAGE} " )
89
89
90
+ # Exclude Windows specific BAT scripts from install/packaging for Linux.
91
+ if (NOT WIN32 )
92
+ set (exclusion_pattern "*.bat" )
93
+ else ()
94
+ set (exclusion_pattern "" )
95
+ endif ()
96
+
90
97
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /bin
91
98
DESTINATION .
92
99
USE_SOURCE_PERMISSIONS
93
- DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE )
100
+ DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
101
+ FILES_MATCHING
102
+ PATTERN "*"
103
+ PATTERN ${exclusion_pattern} EXCLUDE )
104
+
94
105
install (FILES
95
106
"LICENSE.txt"
96
107
"README.md"
97
108
COMPONENT ${hipcc_NAME}
98
109
DESTINATION ${CMAKE_INSTALL_DOCDIR} )
110
+
99
111
install (TARGETS ${HIPCC_BIN}
100
112
COMPONENT ${hipcc_NAME}
101
113
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
114
+
102
115
install (TARGETS ${HIPCONFIG_BIN}
103
116
COMPONENT ${hipcc_NAME}
104
117
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
Original file line number Diff line number Diff line change @@ -39,4 +39,7 @@ endfunction()
39
39
# Create symlink to binaries
40
40
create_binary_symlink ()
41
41
# TODO: Following has to modified if component based installation is required
42
- install (DIRECTORY ${HIPCC_WRAPPER_BIN_DIR} DESTINATION hip )
42
+ install (DIRECTORY ${HIPCC_WRAPPER_BIN_DIR} DESTINATION hip
43
+ FILES_MATCHING
44
+ PATTERN "*"
45
+ PATTERN ${exclusion_pattern} EXCLUDE )
You can’t perform that action at this time.
0 commit comments