TBB cannot be build from FetchContent if OVERRIDE_FIND_PACKAGE is specified
envgap__uxlfoundation__oneTBB-1323
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
9e401d119c9422775b2267cbf133f0446493ddf7- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
uxlfoundation/oneTBB #1323 · read the original issue
Pretty straightforward issue to reproduce: ``` cmake_minimum_required(VERSION 3.24) project(BugReport LANGUAGES CXX) include(FetchContent) FetchContent_Declare(TBB GIT_REPOSITORY "https://github.com/oneapi-src/oneTBB.git" GIT_TAG "master" GIT_SHALLOW ON CMAKE_ARGS "-DTBB_TEST:BOOL=OFF -DTBB_EXAMPLES:BOOL=OFF -DTBB_BENCH:BOOL=OFF -DTBB_BUILD:BOOL=ON -DTBB_FIND_PACKAGE:BOOL=OFF -DTBB_FUZZ_TESTING:BOOL=OFF -DTBB_INSTALL:BOOL=ON" OVERRIDE_FIND_PACKAGE ) set(TBB_TEST OFF CACHE INTERNAL "" FORCE) set(TBB_EXAMPLES OFF CACHE INTERNAL "" FORCE) set(TBB_BENCH OFF CACHE INTERNAL "" FORCE) set(TBB_BUILD ON CACHE INTERNAL "" FORCE) set(TBB_FIND_PACKAGE OFF CACHE INTERNAL "" FORCE) set(TBB_FUZZ_TESTING OFF CACHE INTERNAL "" FORCE) set(TBB_INSTALL ON CACHE INTERNAL "" FORCE) FetchContent_MakeAvailable(TBB) if (NOT TBB::tbb) message(FATAL_ERROR "Failed to add TBB through FetchContent") endif() ```
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]