From 56965a10cb9994e3d1fc73922be01248f9b9dd72 Mon Sep 17 00:00:00 2001 From: JCGoran Date: Wed, 6 Nov 2024 17:05:09 +0100 Subject: [PATCH] Do not run `xcrun` on non-Mac systems (#3178) Removes the annoying `xcrun: No such file or directory` message --- bin/nrnivmodl_core_makefile.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/nrnivmodl_core_makefile.in b/bin/nrnivmodl_core_makefile.in index 09f68d9fca..c97db4e7a9 100644 --- a/bin/nrnivmodl_core_makefile.in +++ b/bin/nrnivmodl_core_makefile.in @@ -16,8 +16,10 @@ DESTDIR = TARGET_LIB_TYPE = $(BUILD_TYPE) # required for OSX to execute nrnivmodl-core -ifeq ($(origin SDKROOT), undefined) - export SDKROOT := $(shell xcrun --sdk macosx --show-sdk-path) +ifeq ($(OS_NAME), Darwin) + ifeq ($(origin SDKROOT), undefined) + export SDKROOT := $(shell xcrun --sdk macosx --show-sdk-path) + endif endif # CoreNEURON installation directories