mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
pip - install cmake files to python modules
that's also where the shared libraries are, otherwise cmake won't find the libraries when building NGSolve (different directory structure and relative paths depending on system/user/venv package install)
This commit is contained in:
parent
9290e3e29a
commit
8430bb82a2
3
setup.py
3
setup.py
@ -55,8 +55,8 @@ if 'darwin' in sys.platform:
|
|||||||
cmake_args += [
|
cmake_args += [
|
||||||
f'-DNG_INSTALL_DIR_LIB=netgen',
|
f'-DNG_INSTALL_DIR_LIB=netgen',
|
||||||
f'-DNG_INSTALL_DIR_PYTHON=.',
|
f'-DNG_INSTALL_DIR_PYTHON=.',
|
||||||
f'-DNG_INSTALL_DIR_CMAKE=lib/cmake',
|
|
||||||
f'-DNG_INSTALL_DIR_BIN=bin',
|
f'-DNG_INSTALL_DIR_BIN=bin',
|
||||||
|
f'-DNG_INSTALL_DIR_CMAKE=netgen/cmake',
|
||||||
]
|
]
|
||||||
elif 'win' in sys.platform:
|
elif 'win' in sys.platform:
|
||||||
cmake_args += [
|
cmake_args += [
|
||||||
@ -64,6 +64,7 @@ elif 'win' in sys.platform:
|
|||||||
f'-DNG_INSTALL_DIR_BIN=netgen',
|
f'-DNG_INSTALL_DIR_BIN=netgen',
|
||||||
f'-DNG_INSTALL_DIR_PYTHON=.',
|
f'-DNG_INSTALL_DIR_PYTHON=.',
|
||||||
f'-DNG_INSTALL_DIR_LIB=Library/lib',
|
f'-DNG_INSTALL_DIR_LIB=Library/lib',
|
||||||
|
f'-DNG_INSTALL_DIR_CMAKE=netgen/cmake',
|
||||||
]
|
]
|
||||||
elif 'linux' in sys.platform:
|
elif 'linux' in sys.platform:
|
||||||
name_dir = name.replace('-','_')
|
name_dir = name.replace('-','_')
|
||||||
|
Loading…
Reference in New Issue
Block a user