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:
mhochsteger@cerbsim.com 2022-02-16 16:17:56 +01:00
parent 9290e3e29a
commit 8430bb82a2

View File

@ -55,8 +55,8 @@ if 'darwin' in sys.platform:
cmake_args += [
f'-DNG_INSTALL_DIR_LIB=netgen',
f'-DNG_INSTALL_DIR_PYTHON=.',
f'-DNG_INSTALL_DIR_CMAKE=lib/cmake',
f'-DNG_INSTALL_DIR_BIN=bin',
f'-DNG_INSTALL_DIR_CMAKE=netgen/cmake',
]
elif 'win' in sys.platform:
cmake_args += [
@ -64,6 +64,7 @@ elif 'win' in sys.platform:
f'-DNG_INSTALL_DIR_BIN=netgen',
f'-DNG_INSTALL_DIR_PYTHON=.',
f'-DNG_INSTALL_DIR_LIB=Library/lib',
f'-DNG_INSTALL_DIR_CMAKE=netgen/cmake',
]
elif 'linux' in sys.platform:
name_dir = name.replace('-','_')