Skip to content

Cmake: the handling of the case without TBB doesn't work #23

@srpgilles

Description

@srpgilles

In ctrackConfig.cmake, there is the block:

if(NOT MSVC AND NOT CTRACK_DISABLE_EXECUTION_POLICY)
    include(CMakeFindDependencyMacro)
    find_dependency(TBB QUIET)
    if(NOT TBB_FOUND)
        message(STATUS "TBB not found. Disabling parallel execution for ctrack.")
        set(CTRACK_DISABLE_EXECUTION_POLICY ON)
    endif()
endif()

When TBB is not found in the find_dependency line, it stops the installation with the failure - apparently QUIET is just there to limit the verbosity of the output.

I don't quite get how to provide CTRACK_DISABLE_EXECUTION_POLICY (I'm not super at ease with CMake configuration); it is not propagated when DISABLE_PAR is set and giving a CTRACK_DISABLE_EXECUTION_POLICY is the CMake command doesn't quite work to avoid entirely the block above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions