Skip to content

Commit

Permalink
Do not run xcrun on non-Mac systems
Browse files Browse the repository at this point in the history
Removes the annoying `xcrun: No such file or directory` message
  • Loading branch information
JCGoran committed Nov 6, 2024
1 parent 68b193d commit c0f30a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/nrnivmodl_core_makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0f30a7

Please sign in to comment.