Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.variables.outputs.TAG_NAME }}

- name: Update major version tag
run: |
VERSION=${{ steps.variables.outputs.TAG_NAME }}
MAJOR=${VERSION%%.*}
git config --global user.name 'GitHub Actions'
git config --global user.email 'action@github.com'
git tag -fa "${MAJOR}" -m 'Update major version tag with $VERSION'
git push origin "${MAJOR}" --force

- name: Create a GitHub release
uses: ncipollo/release-action@main
Expand Down
12 changes: 0 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ find_package(Threads REQUIRED)

find_package(FFTW REQUIRED)

find_library(LIBSTDCXX_LIBRARY stdc++)

# Register all source and header files
file(GLOB_RECURSE
SOURCES
Expand Down Expand Up @@ -100,16 +98,6 @@ target_link_libraries(
${HDF5_LIBRARIES}
)

if(LIBSTDCXX_LIBRARY)
message("Linking to libstdc++ at ${LIBSTDCXX_LIBRARY}")
target_link_libraries(
${PROJECT_NAME}
PUBLIC
${LIBSTDCXX_LIBRARY}
)

endif()

# Install library's binary files and headers
install(
TARGETS ${PROJECT_NAME}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# xmippCore

[![CI](https://github.com/I2PC/xmippCore/actions/workflows/main.yml/badge.svg)](https://github.com/I2PC/xmippCore/actions/workflows/main.yml)
[![CI](https://github.com/I2PC/xmippCore/actions/workflows/build.yml/badge.svg)](https://github.com/I2PC/xmippCore/actions/workflows/build.yml)


**>>> To install Xmipp, please visit [this](https://github.com/I2PC/xmipp#xmipp) <<<**
Expand Down
5 changes: 4 additions & 1 deletion core/metadata_vec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,10 @@ void MetaDataVec::split(size_t parts, std::vector<MetaDataVec> &results, const M
REPORT_ERROR(ERR_MD, "MetaDataDb::split: Couldn't split a metadata in more parts than its size");

MetaDataVec sorted;
sorted.sort(*this, sortLabel);
if (sortLabel == MDL_UNDEFINED)
sorted = *this;
else
sorted.sort(*this, sortLabel);

results.clear();
results.resize(parts);
Expand Down