From e3ea1a4c29cc265ab500a9f694e0ccb856099323 Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Thu, 29 Jun 2023 22:35:31 -0400 Subject: [PATCH] Exclude .bat only on non-windows oses --- hipcc-backward-compat.cmake | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hipcc-backward-compat.cmake b/hipcc-backward-compat.cmake index d426d8b..468f54d 100644 --- a/hipcc-backward-compat.cmake +++ b/hipcc-backward-compat.cmake @@ -39,7 +39,11 @@ endfunction() # Create symlink to binaries create_binary_symlink() # TODO: Following has to modified if component based installation is required -install(DIRECTORY ${HIPCC_WRAPPER_BIN_DIR} DESTINATION hip - FILES_MATCHING - PATTERN "*" - PATTERN ${exclusion_pattern} EXCLUDE ) +if (NOT WIN32) + install(DIRECTORY ${HIPCC_WRAPPER_BIN_DIR} DESTINATION hip) +else() + install(DIRECTORY ${HIPCC_WRAPPER_BIN_DIR} DESTINATION hip + FILES_MATCHING + PATTERN "*" + PATTERN "*.bat" EXCLUDE ) +endif()