Skip to content

Commit e1491f6

Browse files
authored
Merge pull request #101 from ROCm-Developer-Tools/kzhuravl/fix-exclude-pat
Exclude .bat only on non-windows oses
2 parents db2da08 + 4db808c commit e1491f6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

amd/hipcc/hipcc-backward-compat.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ endfunction()
3939
# Create symlink to binaries
4040
create_binary_symlink()
4141
# TODO: Following has to modified if component based installation is required
42-
install(DIRECTORY ${HIPCC_WRAPPER_BIN_DIR} DESTINATION hip
43-
FILES_MATCHING
44-
PATTERN "*"
45-
PATTERN ${exclusion_pattern} EXCLUDE )
42+
if (NOT WIN32)
43+
install(DIRECTORY ${HIPCC_WRAPPER_BIN_DIR} DESTINATION hip)
44+
else()
45+
install(DIRECTORY ${HIPCC_WRAPPER_BIN_DIR} DESTINATION hip
46+
FILES_MATCHING
47+
PATTERN "*"
48+
PATTERN "*.bat" EXCLUDE )
49+
endif()

0 commit comments

Comments
 (0)