Skip to content

CMake Error from Incorrect Usage of "source_group" since CMake 4.5 #274

Closed

Description

@rroessler

Since CMake 4.5, there appears to be a mismatch between the current usage of source_group for Boost Locale. Currently there will be a compilation error similar to this issue when not using b2 build system:

CMake Error at libs/locale/CMakeLists.txt:231 (source_group):
  source_group
  "/build/orca-slicer/src/OrcaSlicer-2.5.0/deps/build/dep_Boost-prefix/src/dep_Boost/libs/locale/include/boost/locale"
  is not a prefix of file
  "/build/orca-slicer/src/OrcaSlicer-2.5.0/deps/build/dep_Boost-prefix/src/dep_Boost/libs/locale/include/boost/locale.hpp"

The error stems from a change in how the prefix is specified since CMake 4.5 and has been noted that the previous behaviour is considered erroneous.

The current cuplrit is:

source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/include/boost/locale" PREFIX "headers" FILES ${sources_inc})

Activity

  1. Flamefire commented on Nov 16, 2026

    @Flamefire
    Collaborator

    Thanks for the report.
    This has already been fixed in #273 and will be part of Boost 1.93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions