Skip to content

Commit 6dc124e

Browse files
committed
use boost submodules
1 parent d73f151 commit 6dc124e

16 files changed

Lines changed: 41 additions & 28 deletions

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@
77
[submodule "external/eigen"]
88
path = external/eigen
99
url = https://gitlab.com/libeigen/eigen.git
10+
[submodule "external/boostorg/multiprecision"]
11+
path = external/boostorg/multiprecision
12+
url = https://github.com/boostorg/multiprecision
13+
[submodule "external/boostorg/config"]
14+
path = external/boostorg/config
15+
url = https://github.com/boostorg/config
16+
[submodule "external/boostorg/math"]
17+
path = external/boostorg/math
18+
url = https://github.com/boostorg/math

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
Please see the release notes in doc/devsim.pdf or at https://devsim.net for more detailed information about changes.
66

7+
## Version TBD
8+
9+
Boost is now added as a submodule, instead of using system libraries or Anaconda Python versions. The Centos 7 build no longer requires Anaconda Python.
10+
711
## Version 2.2.0
812

913
It is possible to delete devices using the ``delete_device`` command. Meshes used to instantiate devices may be deleted using the ``delete_mesh`` command. Parameters set on a device and its regions are also cleared from the parameter database.

cmake/appveyor.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
#SET (CMAKE_CXX_WARNING_LEVEL 4)
88
SET (FLEX "C:/msys64/usr/bin/flex.exe")
99
SET (BISON "C:/msys64/usr/bin/bison.exe")
10-
SET (BOOST_INCLUDE "${CONDA_PREFIX}/Library/include")
10+
SET (EXTERNAL_LIB ${PROJECT_SOURCE_DIR}/external)
11+
SET (BOOST_INCLUDE ${EXTERNAL_LIB}/boostorg/config/include ${EXTERNAL_LIB}/boostorg/math/include ${EXTERNAL_LIB}/boostorg/multiprecision/include)
12+
ADD_DEFINITIONS(-DBOOST_MP_STANDALONE -DBOOST_MP_MATH_AVAILABLE)
1113

1214
ADD_DEFINITIONS(-DSTATIC_BUILD -D_USE_MATH_DEFINES)
1315
#Math stuff

cmake/centos_6.cmake

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
ADD_COMPILE_OPTIONS(-Wall -fvisibility=hidden)
2-
31
SET (EXTERNAL_LIB ${PROJECT_SOURCE_DIR}/external)
42

53
SET (FLEX /usr/bin/flex)
64
SET (BISON /usr/bin/bison)
75

8-
SET (BOOST_INCLUDE "${EXTERNAL_LIB}/boost_1_80_0")
6+
SET (BOOST_INCLUDE ${EXTERNAL_LIB}/boostorg/config/include ${EXTERNAL_LIB}/boostorg/math/include ${EXTERNAL_LIB}/boostorg/multiprecision/include)
7+
ADD_DEFINITIONS(-DBOOST_MP_STANDALONE -DBOOST_MP_MATH_AVAILABLE)
98

109
SET (QUADMATH_ARCHIVE "-lquadmath")
1110

@@ -36,6 +35,6 @@ SET (SYMDIFF_ARCHIVE ${EXTERNAL_LIB}/symdiff/lib/libsymdiff_dynamic.a)
3635
#SET (PYTHON3_INCLUDE ${CONDA_PREFIX}/include/python3.8)
3736
#SET (PYTHON3_ARCHIVE -L${CONDA_PREFIX}/lib -lpython3.8m)
3837

39-
# important flag for dynamic linking of static archives on linux
38+
ADD_COMPILE_OPTIONS(-Wall -fvisibility=hidden)
4039
SET (CMAKE_POSITION_INDEPENDENT_CODE ON)
4140

cmake/msys.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
SET (EXTERNAL_LIB ${PROJECT_SOURCE_DIR}/external)
2+
13
ADD_COMPILE_OPTIONS(-Wall)
24
SET (FLEX flex)
35
SET (BISON bison)
46

5-
SET (BOOST_INCLUDE "${CONDA_PREFIX}/Library/include")
7+
SET (BOOST_INCLUDE ${EXTERNAL_LIB}/boostorg/config/include ${EXTERNAL_LIB}/boostorg/math/include ${EXTERNAL_LIB}/boostorg/multiprecision/include)
68
ADD_DEFINITIONS(-DBOOST_NO_CXX14_CONSTEXPR)
9+
ADD_DEFINITIONS(-DBOOST_MP_STANDALONE -DBOOST_MP_MATH_AVAILABLE)
710
#ADD_DEFINITIONS(-DSTATIC_BUILD -D_USE_MATH_DEFINES)
811

912
#SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:strict /EHsc ${WARNINGS_IGNORE}")

cmake/osx_10.10.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ SET (EXTERNAL_LIB ${PROJECT_SOURCE_DIR}/external)
55
SET (FLEX /usr/bin/flex)
66
SET (BISON /usr/bin/bison)
77

8-
SET (BOOST_INCLUDE "${CONDA_PREFIX}/include")
8+
SET (BOOST_INCLUDE ${EXTERNAL_LIB}/boostorg/config/include ${EXTERNAL_LIB}/boostorg/math/include ${EXTERNAL_LIB}/boostorg/multiprecision/include)
9+
ADD_DEFINITIONS(-DBOOST_MP_STANDALONE -DBOOST_MP_MATH_AVAILABLE)
910

1011
SET (BLAS_ARCHIVE -weak-lblas -weak-llapack)
1112
SET (EXTERNAL_LIB ${PROJECT_SOURCE_DIR}/external)
@@ -21,3 +22,4 @@ SET (SYMDIFF_ARCHIVE ${EXTERNAL_LIB}/symdiff/lib/libsymdiff_static.a)
2122
SET (SYMDIFF_INCLUDE ${EXTERNAL_LIB}/symdiff/include)
2223
SET (ADD_LINKER_FLAGS " -flat_namespace")
2324

25+

cmake/osx_gcc.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ SET (EXTERNAL_LIB ${PROJECT_SOURCE_DIR}/external)
55
SET (FLEX /usr/bin/flex)
66
SET (BISON /usr/bin/bison)
77

8-
SET (BOOST_INCLUDE "${CONDA_PREFIX}/include")
8+
SET (BOOST_INCLUDE ${EXTERNAL_LIB}/boostorg/config/include ${EXTERNAL_LIB}/boostorg/math/include ${EXTERNAL_LIB}/boostorg/multiprecision/include)
9+
ADD_DEFINITIONS(-DBOOST_MP_STANDALONE -DBOOST_MP_MATH_AVAILABLE)
910

1011
SET (QUADMATH_ARCHIVE "-lquadmath")
1112

@@ -31,3 +32,4 @@ SET (ZLIB_ARCHIVE ${CONDA_PREFIX}/lib/libz.a)
3132
SET (SYMDIFF_INCLUDE ${EXTERNAL_LIB}/symdiff/include)
3233
SET (SYMDIFF_ARCHIVE ${EXTERNAL_LIB}/symdiff/lib/libsymdiff_static.a)
3334

35+

cmake/ubuntu_18.04.cmake

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
ADD_COMPILE_OPTIONS(-Wall -fvisibility=hidden)
2-
31
SET (FLEX /usr/bin/flex)
42
SET (BISON /usr/bin/bison)
53
SET (EXTERNAL_LIB ${PROJECT_SOURCE_DIR}/external)
@@ -15,14 +13,15 @@ SET (SQLITE3_ARCHIVE -lsqlite3)
1513
SET (SUPERLULOCATE ${EXTERNAL_LIB}/superlu)
1614
SET (SUPERLU_INCLUDE ${SUPERLULOCATE}/SRC)
1715
SET (SUPERLU_ARCHIVE ${SUPERLULOCATE}/build/SRC/libsuperlu.a)
18-
SET (BOOST_INCLUDE "/usr/include")
16+
SET (BOOST_INCLUDE ${EXTERNAL_LIB}/boostorg/config/include ${EXTERNAL_LIB}/boostorg/math/include ${EXTERNAL_LIB}/boostorg/multiprecision/include)
17+
ADD_DEFINITIONS(-DBOOST_MP_STANDALONE -DBOOST_MP_MATH_AVAILABLE)
1918
SET (QUADMATH_ARCHIVE "-lquadmath")
2019
SET (DLOPEN_LIB -ldl)
2120
SET (SQLITE3_INCLUDE /usr/include)
2221

2322
SET (SYMDIFF_ARCHIVE ${EXTERNAL_LIB}/symdiff/lib/libsymdiff_dynamic.a)
2423
SET (SYMDIFF_INCLUDE ${EXTERNAL_LIB}/symdiff/include)
2524

26-
# important flag for dynamic linking of static archives on linux
25+
ADD_COMPILE_OPTIONS(-Wall -fvisibility=hidden)
2726
SET (CMAKE_POSITION_INDEPENDENT_CODE ON)
2827

external/boostorg/config

Submodule config added at 1cff5e3

external/boostorg/math

Submodule math added at db2a7cb

0 commit comments

Comments
 (0)