Skip to content

Commit 6b0f23f

Browse files
authored
Merge pull request #99 from jhu-cisst/rc-1.2.1
1.2.1
2 parents 5a02590 + ab27196 commit 6b0f23f

File tree

15 files changed

+131
-213
lines changed

15 files changed

+131
-213
lines changed

.github/workflows/macos-11.0.yml renamed to .github/workflows/macos-latest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: macOS 11.0
1+
name: macOS latest
22

33
on:
44
# Triggers the workflow on push or pull request events but only for the master branch
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
build:
1313

14-
runs-on: macos-11.0
14+
runs-on: macos-latest
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -29,7 +29,7 @@ jobs:
2929
- name: Build cisstNetlib
3030
working-directory: ${{github.workspace}}/cisstNetlib-build
3131
run: |
32-
cmake ${{github.workspace}}/cisstNetlib-source -DCMAKE_Fortran_COMPILER=gfortran-9
32+
cmake ${{github.workspace}}/cisstNetlib-source -DcisstNetlib_LANGUAGE=C
3333
cmake --build . --config Release
3434
sudo cmake --build . --target install
3535

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Change log
22
==========
33

4+
5+
1.2.1 (2022-12-29)
6+
==================
7+
8+
* API changes:
9+
* CMake find_package now uses CMake `COMPATIBILITY` `SameMajorVersion`, older code used custom version check equivalent to `SameMinorVersion`
10+
* Deprecated features:
11+
* cisstNumerical: polynomial is not compiled by default, set `CISST_NMR_COMPILE_POLYNOMIALS` if these are needed. We plan to remove this code in later releases
12+
* Bug fixes:
13+
* cisstDataGenerator: fixed export for enums and static methods
14+
* cisstNumerical: for OS requiring CLAPACK, cisstNetlib now uses a fork that has been updated to support recent C/C++ compilers
15+
* Fixed some GitHub actions/workflows
16+
17+
418
1.2.0 (2022-11-21)
519
==================
620

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## -*- Mode: CMAKE; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
22

33
#
4-
# (C) Copyright 2005-2021 Johns Hopkins University (JHU), All Rights Reserved.
4+
# (C) Copyright 2005-2023 Johns Hopkins University (JHU), All Rights Reserved.
55
#
66
# --- begin cisst license - do not edit ---
77
#
@@ -13,10 +13,10 @@
1313

1414

1515
# Backward compatibility
16-
cmake_minimum_required (VERSION 3.0)
16+
cmake_minimum_required (VERSION 3.10)
1717

1818
# cisst (Computer Integrated Surgical Systems and Technology)
19-
project (cisst VERSION 1.2.0)
19+
project (cisst VERSION 1.2.1)
2020

2121
# cisst compiler settings
2222
include (cmake/cisstSettings.cmake)
@@ -545,8 +545,8 @@ install (FILES "${cisst_BINARY_DIR}/cisst-config.cmake-to-be-installed"
545545

546546
# CMake use cisst file
547547
set (CISST_CMAKE_FILES_TO_COPY
548-
Usecisst.cmake cisstSettings.cmake cisstMacros.cmake cisstConfigVersion.cmake.in
549-
sawRevision.h.in sawConfig.cmake.in sawConfigVersion.cmake.in)
548+
Usecisst.cmake cisstSettings.cmake cisstMacros.cmake
549+
sawRevision.h.in sawConfig.cmake.in)
550550
foreach (cmake_file_to_copy ${CISST_CMAKE_FILES_TO_COPY})
551551
# copy to build for users not installing
552552
configure_file ("${CISST_CMAKE_SOURCE_DIR}/${cmake_file_to_copy}"

cisstMultiTask/applications/cisstComponentManager/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#
2-
#
3-
# (C) Copyright 2011-2012 Johns Hopkins University (JHU), All Rights Reserved.
2+
# (C) Copyright 2011-2023 Johns Hopkins University (JHU), All Rights Reserved.
43
#
54
# --- begin cisst license - do not edit ---
65
#
@@ -11,9 +10,9 @@
1110
# --- end cisst license ---
1211

1312
# name of project and executable
14-
project (cisstComponentManager)
13+
project (cisstComponentManager VERSION ${cisst_VERSION})
1514

16-
cmake_minimum_required (VERSION 2.6)
15+
cmake_minimum_required (VERSION 3.10)
1716

1817
# create a list of libraries needed for this project
1918
set (REQUIRED_CISST_LIBRARIES cisstCommon cisstOSAbstraction cisstMultiTask)

cisstNumerical/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ else ()
1919
option (CISST_HAS_CISSTNETLIB "Use the netlib.org sets of numerical methods in Fortran (provided on cisst.org)." OFF)
2020
endif ()
2121

22+
option (CISST_NMR_COMPILE_POLYNOMIALS "Compile the cisstNumerical polynomial classes (deprecated)" OFF)
23+
2224
if (CISST_HAS_CISSTNETLIB)
2325
find_package (CisstNetlib REQUIRED)
2426
cisst_set_package_settings (cisstNumerical cisstNetlib INCLUDE_DIRECTORIES CISSTNETLIB_INCLUDE_DIR)

cisstNumerical/code/CMakeLists.txt

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# CMakeLists for cisstNumerical
33
#
4-
# (C) Copyright 2003-2021 Johns Hopkins University (JHU), All Rights Reserved.
4+
# (C) Copyright 2003-2023 Johns Hopkins University (JHU), All Rights Reserved.
55
#
66
# --- begin cisst license - do not edit ---
77
#
@@ -15,36 +15,44 @@ project (cisstNumerical)
1515

1616
# all source files
1717
set (SOURCE_FILES
18-
nmrBernsteinPolynomial.cpp
19-
nmrBernsteinPolynomialLineIntegral.cpp
2018
nmrGaussJordanInverse.cpp
21-
nmrMultiIndexCounter.cpp
22-
nmrMultiVariablePowerBasis.cpp
23-
nmrPolynomialBase.cpp
24-
nmrPolynomialTermPowerIndex.cpp
25-
nmrSingleVariablePowerBasis.cpp
26-
nmrStandardPolynomial.cpp
2719
)
2820

29-
3021
# all header files
3122
set (HEADER_FILES
32-
nmrBernsteinPolynomial.h
33-
nmrBernsteinPolynomialLineIntegral.h
34-
nmrDynAllocPolynomialContainer.h
3523
nmrExport.h
3624
nmrGaussJordanInverse.h
3725
nmrIsOrthonormal.h
3826
nmrLinearRegression.h
39-
nmrMultiIndexCounter.h
40-
nmrMultiVariablePowerBasis.h
41-
nmrPolynomialBase.h
42-
nmrPolynomialContainer.h
43-
nmrPolynomialTermPowerIndex.h
44-
nmrSingleVariablePowerBasis.h
45-
nmrStandardPolynomial.h
4627
)
4728

29+
if (CISST_NMR_COMPILE_POLYNOMIALS)
30+
set (SOURCE_FILES
31+
${SOURCE_FILES}
32+
nmrBernsteinPolynomial.cpp
33+
nmrBernsteinPolynomialLineIntegral.cpp
34+
nmrMultiIndexCounter.cpp
35+
nmrMultiVariablePowerBasis.cpp
36+
nmrPolynomialBase.cpp
37+
nmrPolynomialTermPowerIndex.cpp
38+
nmrSingleVariablePowerBasis.cpp
39+
nmrStandardPolynomial.cpp
40+
)
41+
set (HEADER_FILES
42+
${HEADER_FILES}
43+
nmrBernsteinPolynomial.h
44+
nmrBernsteinPolynomialLineIntegral.h
45+
nmrDynAllocPolynomialContainer.h
46+
nmrMultiIndexCounter.h
47+
nmrMultiVariablePowerBasis.h
48+
nmrPolynomialBase.h
49+
nmrPolynomialContainer.h
50+
nmrPolynomialTermPowerIndex.h
51+
nmrSingleVariablePowerBasis.h
52+
nmrStandardPolynomial.h
53+
)
54+
endif (CISST_NMR_COMPILE_POLYNOMIALS)
55+
4856
if (CISST_HAS_CISSTNETLIB)
4957
set (SOURCE_FILES
5058
${SOURCE_FILES}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#
2-
# $Id$
3-
#
42
# CMake configuration file for the installed version of cisstNumerical
53
#
64
# Author(s): Anton Deguet
75
# Created on: 2011-09-21
86
#
9-
# (C) Copyright 2011-2012 Johns Hopkins University (JHU), All Rights
10-
# Reserved.
7+
# (C) Copyright 2011-2023 Johns Hopkins University (JHU), All Rights Reserved.
118
#
129
# --- begin cisst license - do not edit ---
1310
#
@@ -17,4 +14,6 @@
1714
#
1815
# --- end cisst license ---
1916

20-
set (CISST_HAS_CISSTNETLIB @CISST_HAS_CISSTNETLIB_CONFIG@)
17+
set (CISST_HAS_CISSTNETLIB @CISST_HAS_CISSTNETLIB@)
18+
19+
set (CISST_NMR_COMPILE_POLYNOMIALS @CISST_NMR_COMPILE_POLYNOMIALS@)

cisstNumerical/nmrConfig.h.in

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,18 @@
22
/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
33

44
/*
5-
$Id$
6-
7-
Author(s): Anton Deguet
8-
Created on: 2011-09-22
9-
10-
(C) Copyright 2011 Johns Hopkins University (JHU), All Rights
11-
Reserved.
5+
Author(s): Anton Deguet
6+
Created on: 2011-09-22
127
8+
(C) Copyright 2011-2023 Johns Hopkins University (JHU), All Rights Reserved.
9+
1310
--- begin cisst license - do not edit ---
1411
1512
This software is provided "as is" under an open source license, with
1613
no warranty. The complete license can be found in license.txt and
1714
http://www.cisst.org/cisst/license.txt.
1815
1916
--- end cisst license ---
20-
2117
*/
2218

2319
#ifndef _nmrConfig_h
@@ -28,4 +24,6 @@ http://www.cisst.org/cisst/license.txt.
2824
// Do we have cisstNetlib
2925
#cmakedefine01 CISST_HAS_CISSTNETLIB
3026

27+
#cmakedefine01 CISST_NMR_COMPILE_POLYNOMIALS
28+
3129
#endif // _nmrConfig_h

cisstNumerical/nmrNetlib.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
/* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
33

44
/*
5-
65
Author(s): Anton Deguet, Simon Leonard
76
Created on: 2005-11-24
87
9-
(C) Copyright 2005-2010 Johns Hopkins University (JHU), All Rights
10-
Reserved.
8+
(C) Copyright 2005-2023 Johns Hopkins University (JHU), All Rights Reserved.
119
1210
--- begin cisst license - do not edit ---
1311
@@ -36,14 +34,21 @@ no warranty. The complete license can be found in license.txt and
3634
/*! Check if cisstNetlib has a version, i.e. it has for versions
3735
greater or equal to 2. In Version 2 we introduced typedefs to make
3836
sure we use the correct Fortran types. */
39-
#ifndef CISSTNETLIB_VERSION
37+
#ifndef cisstNetlib_VERSION
4038
typedef long int CISSTNETLIB_INTEGER;
4139
typedef long int CISSTNETLIB_LOGICAL;
4240
typedef float CISSTNETLIB_FLOAT;
4341
typedef double CISSTNETLIB_DOUBLE;
4442
#endif // CISSTNETLIB_VERSION
4543

44+
// for backward compatibility
45+
#ifndef CISSTNETLIB_VERSION
46+
#define CISSTNETLIB_VERSION cisstNetlib_VERSION
47+
#endif
48+
#ifndef CISSTNETLIB_VERSION_MAJOR
49+
#define CISSTNETLIB_VERSION_MAJOR cisstNetlib_VERSION_MAJOR
50+
#endif
51+
4652
#endif // CISST_HAS_CISSTNETLIB
4753

4854
#endif // _nmrNetlib_h
49-

cisstNumerical/tests/CMakeLists.txt

Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#
2-
# CMakeLists for cisstNumerical tests
3-
#
4-
# (C) Copyright 2004-2014 Johns Hopkins University (JHU), All Rights
5-
# Reserved.
2+
# (C) Copyright 2004-2023 Johns Hopkins University (JHU), All Rights Reserved.
63
#
74
# --- begin cisst license - do not edit ---
85
#
@@ -14,31 +11,38 @@
1411

1512
# all source files
1613
set (SOURCE_FILES
17-
nmrBernsteinPolynomialTest.cpp
18-
nmrBernsteinPolynomialLineIntegralTest.cpp
19-
nmrDynAllocPolynomialContainerTest.cpp
20-
nmrGaussJordanInverseTest.cpp
21-
nmrLinearRegressionTest.cpp
22-
nmrMultiIndexCounterTest.cpp
23-
nmrPolynomialBaseTest.cpp
24-
nmrPolynomialTermPowerIndexTest.cpp
25-
nmrStandardPolynomialTest.cpp
26-
)
14+
nmrGaussJordanInverseTest.cpp
15+
nmrLinearRegressionTest.cpp
16+
)
2717

2818
# all header files
2919
set (HEADER_FILES
30-
nmrBernsteinPolynomialTest.h
31-
nmrBernsteinPolynomialLineIntegralTest.h
32-
nmrDynAllocPolynomialContainerTest.h
33-
nmrGaussJordanInverseTest.h
34-
nmrLinearRegressionTest.h
35-
nmrMultiIndexCounterTest.h
36-
nmrPolynomialBaseTest.h
37-
nmrPolynomialTermPowerIndexTest.h
38-
nmrStandardPolynomialTest.h
39-
)
20+
nmrGaussJordanInverseTest.h
21+
nmrLinearRegressionTest.h
22+
)
23+
24+
if (CISST_NMR_COMPILE_POLYNOMIALS)
25+
set (SOURCE_FILES
26+
${SOURCE_FILES}
27+
nmrBernsteinPolynomialTest.cpp
28+
nmrBernsteinPolynomialLineIntegralTest.cpp
29+
nmrDynAllocPolynomialContainerTest.cpp
30+
nmrMultiIndexCounterTest.cpp
31+
nmrPolynomialBaseTest.cpp
32+
nmrPolynomialTermPowerIndexTest.cpp
33+
nmrStandardPolynomialTest.cpp
34+
)
35+
set (HEADER_FILES
36+
nmrBernsteinPolynomialTest.h
37+
nmrBernsteinPolynomialLineIntegralTest.h
38+
nmrDynAllocPolynomialContainerTest.h
39+
nmrMultiIndexCounterTest.h
40+
nmrPolynomialBaseTest.h
41+
nmrPolynomialTermPowerIndexTest.h
42+
nmrStandardPolynomialTest.h
43+
)
44+
endif (CISST_NMR_COMPILE_POLYNOMIALS)
4045

41-
# Added tests available for cisstNetlib
4246
if (CISST_HAS_CISSTNETLIB)
4347
set (SOURCE_FILES
4448
${SOURCE_FILES}
@@ -81,22 +85,6 @@ if (CISST_HAS_CISSTNETLIB)
8185
)
8286
endif (CISST_HAS_CISSTNETLIB)
8387

84-
# add files if cnetlib is used
85-
# IF(CISST_HAS_CNETLIB)
86-
# SET(SOURCE_FILES
87-
# ${SOURCE_FILES}
88-
# nmrLSEISolverTest.cpp
89-
# nmrNonLinSolverTest.cpp
90-
# )
91-
92-
# SET(HEADER_FILES
93-
# ${HEADER_FILES}
94-
# nmrLSEISolverTest.h
95-
# nmrNonLinSolverTest.h
96-
# )
97-
#
98-
# ENDIF(CISST_HAS_CNETLIB)
99-
10088
# paths for headers/libraries
10189
cisst_set_directories (cisstCommon cisstVector cisstOSAbstraction cisstNumerical cisstTestsDriver)
10290

cisstOSAbstraction/osaSerialPort.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ class CISST_EXPORT osaSerialPort: public cmnGenericObject
7575
BaudRate230400 = CBR_230400,
7676
BaudRate460800 = CBR_460800};
7777
#else
78+
// MacOS doesn't define some of the baud rates
79+
#ifndef B460800
80+
#define B460800 460800
81+
#endif
7882
enum BaudRateType {BaudRate300 = B300,
7983
BaudRate1200 = B1200,
8084
BaudRate9600 = B9600,

0 commit comments

Comments
 (0)