From 9a13063b305a9bd8085f302e494946aa3088037c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 8 Dec 2024 09:54:25 +0000 Subject: [PATCH] Only use powershell for MSVC --- mlx/backend/common/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/backend/common/CMakeLists.txt b/mlx/backend/common/CMakeLists.txt index 35f6824d1..6556f21d3 100644 --- a/mlx/backend/common/CMakeLists.txt +++ b/mlx/backend/common/CMakeLists.txt @@ -5,7 +5,7 @@ else() set(COMPILER ${CMAKE_CXX_COMPILER}) endif() -if(WIN32) +if(MSVC) set(SHELL_EXT ps1) set(SHELL_CMD powershell -ExecutionPolicy Bypass -File) else()