Skip to content

Commit

Permalink
BUG: Fix bug with matio log call (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed May 22, 2024
1 parent 69c2f15 commit 7a44f73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,7 @@ jobs:
BREW_EXTRA=openblas
fi
echo "Installing dependencies with brew"
# TODO: Not libmatio 1.5.27 compatible
brew tap-new $USER/local-libmatio
brew tap homebrew/core --force
brew extract --version=1.5.26 libmatio $USER/local-libmatio
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5 libmatio@1.5.26 libomp swig $BREW_EXTRA
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5 libmatio libomp swig $BREW_EXTRA
echo "brew install complete"
if [[ "${{steps.env-vars.outputs.blas}}" == "OpenBLAS" ]]; then
if [[ "$(arch)" == "arm64" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.14)
project (OpenMEEG VERSION 2.5.9999 LANGUAGES C CXX)
project (OpenMEEG VERSION 2.5.9 LANGUAGES C CXX)

set(CMAKE_CXX_STANDARD 17) # use c++17

Expand Down
5 changes: 4 additions & 1 deletion OpenMEEGMaths/include/MatlabIO.H
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,11 @@ namespace OpenMEEG {
}

private:

#if MATIO_VERSION>=1527
static void matiologfunc(int log_level,const char* message) {
#else
static void matiologfunc(const int log_level,char* message) {
#endif

// Ugly copy of values in matio/io.c, but those are not exported...

Expand Down

0 comments on commit 7a44f73

Please sign in to comment.