mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 22:25:48 -04:00
set PYTHONVERSION when undefined
This commit is contained in:
parent
973e3e4975
commit
49c0be4456
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,9 @@ LIBRARY = libnwpython.a
|
|||
|
||||
OBJ = python_input.o task_python.o nwchem_wrap.o nw_inp_from_string.o
|
||||
|
||||
|
||||
ifndef PYTHONVERSION
|
||||
PYTHONVERSION=$(shell python -V| cut -d ' ' -f 2 |cut -d . -f 1-2)
|
||||
endif
|
||||
|
||||
LIB_INCLUDES = $(shell python$(PYTHONVERSION)-config --includes| sed -e "s/\-iwithsysroot/\-I/g")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue