Commit Graph

128 Commits

Author SHA1 Message Date
Jean-Christophe Fillion-Robin
c718423ba6
COMP: Support configuring project specifying custom CMAKE_MACOSX_RPATH value
This commit updates the build-system to set CMAKE_MACOSX_RPATH to TRUE
only if is not already defined in the current scope. The default
behavior remains unchanged.

This allows to successfully configure the project with the following
options so that RPATH with absolute paths is used for both the build
and install trees:

  -DCMAKE_MACOSX_RPATH:BOOL=FALSE
  -DCMAKE_INSTALL_NAME_DIR:PATH=/path/to/install/dir
2022-03-31 01:48:45 -04:00
mhochsteger@cerbsim.com
dbbe91018d Don't pack bundle files into pip package on MacOS 2022-02-02 17:32:50 +01:00
mhochsteger@cerbsim.com
814cc59c08 work around issue with LIST_SEPARATOR on MacosM1
just pass one TK_INCLUDE_PATH and find the others when necessary
2021-12-02 14:32:30 +01:00
mhochsteger@cerbsim.com
0da6aeb94f Link Ws2_32.lib on Windows when building with OCC 2021-11-05 19:55:25 +01:00
mhochsteger@cerbsim.com
1cf9e3ff02 version handling, generate python configuration file 2021-10-28 13:57:24 +02:00
mhochsteger@cerbsim.com
d9e8b815f5 pip installer 2021-10-27 16:51:41 +02:00
mhochsteger@cerbsim.com
310a316127 fix OCC paths in NetgenConfig.cmake 2021-09-08 11:53:00 +02:00
mhochsteger@cerbsim.com
0b616dd90a list occ libs expliclitly 2021-09-07 15:02:32 +02:00
Matthias Hochsteger
9ddb034e55 link all occ libs 2021-09-06 13:26:02 +02:00
Matthias Hochsteger
467d0e5663 more restrictive occ linking 2021-09-03 13:12:23 +02:00
Matthias Hochsteger
40daa0327c Update OCC 2021-09-02 12:52:34 +00:00
Matthias Hochsteger
bfa88c88eb No write check on install dir with USE_SUPERBUILD=OFF 2021-03-02 09:29:09 +01:00
Matthias Hochsteger
65afc44dcc Handle USE_NATIVE_ARCH=ON correctly on Apple M1 2020-12-17 10:26:29 +01:00
Matthias Hochsteger
916eb09f1e Merge remote-tracking branch 'origin/master' into memory_tracing 2020-11-24 15:31:00 +01:00
mhochsteger
d7a1dda042 cmake - add version info to netgen.exe on Windows 2020-11-24 11:50:24 +01:00
Christopher Lackner
a69cdc9000 mem tracing compile time option, simplify by MemoryTracer as member 2020-11-21 15:49:07 +01:00
Matthias Hochsteger
7a1344bfcb cmake variable NG_COMPILE_FLAGS to set additional compile options 2020-10-01 13:35:53 +02:00
Matthias Hochsteger
52b372718c generate netgen_config.hpp containing all cmake options 2020-09-09 11:33:06 +02:00
Matthias Hochsteger
eb75bc31a6 mpi4py support 2020-07-29 17:23:26 +02:00
Matthias Hochsteger
829ff0aa53 fix install of netgen_version.hpp 2020-07-23 17:49:10 +02:00
Matthias Hochsteger
dcc0484be0 install netgen_version.hpp, set version in Archive 2020-07-23 16:25:06 +02:00
Christopher Lackner
efbd71c8d5 define cmake export compile commands after project 2020-06-03 12:42:35 +02:00
Matthias Hochsteger
94d489e183 cmake - remove compiler definition of NETGEN_VERSION 2020-06-03 11:54:56 +02:00
Matthias Hochsteger
267e8b33fb cmake - use git to generate version string 2020-05-18 15:55:40 +02:00
Matthias Hochsteger
a52ccd7ce5 Fix build with USE_NUMA=ON 2020-03-25 10:40:12 +01:00
Matthias Hochsteger
8fd08ef4ac Download prebuilt CGNS library on MacOS 2020-03-11 21:41:38 +01:00
Matthias Hochsteger
2615b0911e Fix CGNS code for version < 3.4
Install libhdf5 on ubuntu test (cgns depends on it)
2020-03-11 17:43:36 +01:00
Matthias Hochsteger
603141cf1a Fix CGNS support on Windows 2020-03-11 14:53:08 +00:00
Matthias Hochsteger
db5ad09b79 Initial CGNS format read support 2020-03-11 13:39:40 +01:00
Matthias Hochsteger
a5ffcb73c1 Build with '-fno-stack-check' on MacOS if USE_NATIVE_ACH=ON
XCode 11.3 introduced a bug with stack alignment if AVX is activated:
https://forums.developer.apple.com/thread/121887
According to the link, '-fno-stack-check' circumvents this problem
2020-01-17 13:09:44 +01:00
Matthias Hochsteger
ce90bd9e83 [cmake] Simplify compile flag handling on Windows
Add options/define flags to ngcore, so they are automatically passed on
to dependencies
2020-01-16 16:38:06 -08:00
Matthias Hochsteger
09afc419bc [cmake] option USE_NATIVE_ARCH for Windows 2020-01-15 16:49:27 -08:00
Matthias Hochsteger
f3d9d3ad67 [cmake] Don't link python libraries in unix-conda environment
Conda links python libs statically to python executable
2019-11-26 19:26:18 +00:00
Matthias Hochsteger
8f6517ff55 Terminal.app moved on MacOS Catalina 2019-09-10 14:20:31 +02:00
Joachim Schöberl
270ed2fd42 Revert "Merge branch 'pybind11_upgrade' into 'master'"
This reverts merge request !193
2019-08-09 15:59:33 +00:00
Christopher Lackner
3b257a448a upgrade pybind11 to v2.3 2019-08-09 13:14:38 +02:00
Christopher Lackner
ac28c07efc cmake syntax change (new cmake seems to not take 1 here...) 2019-07-29 07:12:56 +02:00
Christopher Lackner
56746b7bb4 add CMAKE_EXPORT_COMPILE_COMMANDS 2019-07-19 11:13:24 +02:00
Matthias Hochsteger
5fb91f26ed User AlignedAlloc for over-aligned types
MacOS < 10.13 doesn't support new with alignment>16 bytes
2019-07-10 13:36:31 +02:00
Matthias Hochsteger
c3a7fc2aab Switch to C++17 2019-07-10 12:57:19 +02:00
Matthias Hochsteger
b848bdc237 Fix MPI build 2019-07-10 12:33:01 +02:00
Christopher Lackner
99df9c0083 auto generate stub files using pybind11_stubgen 2019-06-29 20:01:05 +02:00
Matthias Hochsteger
9a20974418 Disable SPDLOG by default 2019-01-14 13:07:10 +01:00
Matthias Hochsteger
460ee696fd [cmake] Link ngcore to other libraries 2019-01-08 13:12:24 +01:00
Christopher Lackner
5602322e94 add RangeException, NETGEN_CHECK_RANGE macro 2019-01-02 16:30:55 +01:00
Christopher Lackner
fd3474f5cb logging in ngcore 2018-12-28 13:43:15 +01:00
Christopher Lackner
60d4ef13ba fix warning as errors outside of ngcore 2018-12-10 16:20:07 +01:00
Christopher Lackner
6f808cb40f clang-tidy warnings as errors 2018-12-10 10:52:00 +01:00
Christopher Lackner
17aba88117 [ngcore] follow cpp guidelines, check them with clang-tidy 2018-12-08 16:10:29 +01:00
Matthias Hochsteger
2ec3bb0df1 C++ 14 for Archiver 2018-12-03 18:07:52 +01:00