Skip to content
Snippets Groups Projects
Commit 38f5393c authored by Timo Koch's avatar Timo Koch
Browse files

[cmake] Only print TBB found msg when first found

The package is found with QUIET but when found a msg is printed.
However this message was always printed when find_package(TBB) is
called, even when it was already found before leading to multiple
duplicate outputs in the log.
parent 76e906b8
No related branches found
No related tags found
No related merge requests found
Pipeline #77578 passed with warnings
Pipeline: Dune Nightly Test

#77805

    Pipeline: Dune Nightly Test

    #77649

      Pipeline: Dune Nightly Test

      #77648

        ......@@ -54,6 +54,11 @@ set_package_properties("TBB" PROPERTIES
        URL "https://github.com/oneapi-src/oneTBB"
        )
        # check if TBB was already found
        if(TBB_FOUND AND TARGET TBB::tbb)
        return()
        endif()
        # first, try to find TBBs cmake configuration
        find_package(TBB ${TBB_FIND_VERSION} QUIET CONFIG)
        if(TBB_FOUND AND TARGET TBB::tbb)
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment