Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 198f4a4

Browse files
iomaganarispramodk
authored andcommitted
Fixes for NMODL/MOD2C binary
- fix issue when NMODL is set with CORENRN_NMODL_DIR - fix issue with finding _kinderiv.h when installed as submodule of Neuron
1 parent 42da29d commit 198f4a4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

coreneuron/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# commonly included directories
88
include_directories(utils/randoms
99
${MPI_INCLUDE_PATH}
10+
${PROJECT_BINARY_DIR}/coreneuron
1011
${CMAKE_BINARY_DIR}/coreneuron
1112
${CMAKE_BINARY_DIR}/include)
1213

extra/nrnivmodl_core_makefile.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ datadir:= $(ROOT)/share/coreneuron
1818
datadir_mod2c := $(ROOT)/share/mod2c
1919

2020
# Binary of MOD2C/NMODL depending on what was activated
21-
nmodl_binary_path = $(if $(NMODL_BINARY),$(NMODL_BINARY), $(bindir)/@nmodl_binary_name@)
21+
ifeq (@nmodl_FOUND@, TRUE)
22+
nmodl_binary_path = $(if $(NMODL_BINARY),$(NMODL_BINARY), @CORENRN_NMODL_BINARY@)
23+
else
24+
nmodl_binary_path = $(if $(NMODL_BINARY),$(NMODL_BINARY), $(bindir)/@nmodl_binary_name@)
25+
endif
2226

2327
# Additional variables set in CMAKE usable here
2428
# - @CORENRN_COMPILE_DEFS

0 commit comments

Comments
 (0)